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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 13:01:32 2024 UTC