php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65456 Incomprehensible error message while producing a syntax error
Submitted: 2013-08-15 15:43 UTC Modified: 2013-08-15 17:43 UTC
From: ultimateeffect at hotmail dot com Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.4.17 OS: Ubuntu 13.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-08-15 15:43 UTC] ultimateeffect at hotmail dot com
Description:
------------
T_PAAMAYIM_NEKUDOTAYIM - No one has addressed this yet even though this has been 
laughed at by rails developers for some time already so I am creating a ticket.

Thank you.

http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/

Test script:
---------------
<?php
::

Expected result:
----------------
Parse error: syntax error, unexpected '::' (T_DOUBLE_COLON) in ...

Actual result:
--------------
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-15 17:43 UTC] aharvey@php.net
-Status: Open +Status: Wont fix
 [2013-08-15 17:43 UTC] aharvey@php.net
Recent versions of PHP include the actual ::, as your error message includes, so 
it should be clear where the error is (and say what you will, but 
T_PAAMAYIM_NEKUDOTAYIM is _very_ easy to Google). Every language needs a little 
quirkiness.

More seriously, this has previously been discussed on Internals, and the 
consensus was no change: http://comments.gmane.org/gmane.comp.php.devel/62911

Marking Won't Fix. I suggest you find friendlier Rails developers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 18:01:32 2024 UTC