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

From: Date: Thu, 21 Aug 2008 13:00:21 +0000
Subject: #45881 [Opn->Bgs]: Parser doesn't complain when using _> instead of ->
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128283@lists.php.net to get a copy of this message
ID: 45881 Updated by: johannes@php.net 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 ("bubu@bebe.com"); means, after adding some more spaces for readability, the same as $user_ > setUserEmail ("bubu@bebe.com"); 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 ("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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45881&edit=1

« previous php.bugs (#128283) next »