|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-08-08 10:01 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 02:00:01 2025 UTC |
I believe part of the reason why error messages now include the symbol ('::' in your case) is to clarify the meaning of the error while preserving this nod to history. Can you please clarify in which way '::' is confusing or ambiguous?