|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-08-21 12:43 UTC] 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 ("bubu@bebe.com");
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
$user_>setUserEmail ("bubu@bebe.com"); means, after adding some more spaces for readability, the same as $user_ > setUserEmail ("bubu@bebe.com"); which compares the two values...