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
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: ultimateeffect at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 14:01:30 2025 UTC