|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-20 22:15 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 13:00:01 2025 UTC |
Description: ------------ see code below Reproduce code: --------------- <?php define ('EXAMPLE', 0); if(empty(EXAMPLE)) { // some code here } /* Save this file in example.php Opening it via web or CLI the parser stops with an error saying: Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in example.php on line 4 */ ?> Expected result: ---------------- the code in the IF cycle to be executed if EXAMPLE is defined as any value that resolves to "empty" Actual result: -------------- Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in example.php on line 4