Req #76721 [NEW]: T_PAAMAYIM_NEKUDOTAYIM
| From: | s dot rotondo90 at gmail dot com | Date: | Wed, 08 Aug 2018 10:01:03 +0000 |
| Subject: | Req #76721 [NEW]: T_PAAMAYIM_NEKUDOTAYIM | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216672@lists.php.net to get a copy of this message | ||
From: s dot rotondo90 at gmail dot com
Operating system: Any
PHP version: 7.1.20
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:T_PAAMAYIM_NEKUDOTAYIM
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 bug report at https://bugs.php.net/bug.php?id=76721&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76721&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76721&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76721&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76721&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76721&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76721&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76721&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76721&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76721&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76721&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76721&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76721&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76721&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76721&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76721&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76721&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76721&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76721&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76721&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76721&r=mysqlcfg