Edit report at https://bugs.php.net/bug.php?id=65456&edit=1

 ID:                 65456
 Updated by:         ahar...@php.net
 Reported by:        ultimateeffect at hotmail dot com
 Summary:            Incomprehensible error message while producing a
                     syntax error
-Status:             Open
+Status:             Wont fix
 Type:               Bug
 Package:            *General Issues
 Operating System:   Ubuntu 13.04
 PHP Version:        5.4.17
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2013-08-15 15:43:34] 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 ...


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65456&edit=1

Reply via email to