Req #76721 [Com]: T_PAAMAYIM_NEKUDOTAYIM
| From: | spam2 at rhsoft dot net | Date: | Wed, 08 Aug 2018 10:05:13 +0000 |
| Subject: | Req #76721 [Com]: T_PAAMAYIM_NEKUDOTAYIM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216673@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76721&edit=1
ID: 76721
Comment by: spam2 at rhsoft dot net
Reported by: s dot rotondo90 at gmail dot com
Summary: T_PAAMAYIM_NEKUDOTAYIM
Status: Open
Type: Feature/Change Request
Package: *General Issues
Operating System: Any
PHP Version: 7.1.20
Block user comment: N
Private report: N
New Comment:
while i am not a php-developer: that was discussed and reported a million times and won't
happen
Previous Comments:
------------------------------------------------------------------------
[2018-08-08 10:01:03] s dot rotondo90 at gmail dot com
Description:
------------
In some error cases PHP returns the error "Unexpected T_PAAMAYIM_NEKUDOTAYIM" which is in
hebrew language rather than english. This is confusing and causes a lot of time wasting for those
who are new to this error.
It would be more consistent to use an english descriptor such as "Unexpected
T_SCOPE_OPERATOR" or something similiar that instantly lets you to exactly know where the
problem is without having to google it.
Test script:
---------------
<?php
::testCase();
Expected result:
----------------
Parse error: syntax error, unexpected '::' (T_SCOPE_OPERATOR), expecting end of file in
[...][...] on line 3
Actual result:
--------------
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting end of
file in [...][...] on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76721&edit=1