ID: 46914 Updated by: johan...@php.net Reported By: christian at deligant dot net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: debian etch PHP Version: 5.2.8 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2008-12-20 17:45:18] christian at deligant dot net 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46914&edit=1