#45881 [Opn->Bgs]: Parser doesn't complain when using _> instead of ->

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45881
 Updated by:       [email protected]
 Reported By:      frajper at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Compile Issues
 Operating System: RHEL 4
 PHP Version:      5.2CVS-2008-08-21 (snap)
 New Comment:

    $user_>setUserEmail ("[email protected]");

means, after adding some more spaces for readability, the same as

    $user_ > setUserEmail ("[email protected]");

which compares the two values...


Previous Comments:
------------------------------------------------------------------------

[2008-08-21 12:43:56] frajper at gmail dot com

Description:
------------
I wrote _> instead of -> when calling a method of an object and the
parser didn't realize of it.

Reproduce code:
---------------
$user_>setUserEmail ("[email protected]");

Expected result:
----------------
Parse error: syntax error, unexpected '_' in /home/bla/User.php ...

Actual result:
--------------
The script is executed without showing errors, but it does not call the
method.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45881&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.