php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45881 Parser doesn't complain when using _> instead of ->
Submitted: 2008-08-21 12:43 UTC Modified: 2008-08-21 13:00 UTC
From: frajper at gmail dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.2CVS-2008-08-21 (snap) OS: RHEL 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: frajper at gmail dot com
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-21 13:00 UTC] johannes@php.net
    $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...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC