#46914 [Opn->Bgs]: empty(CONSTANT) throws an T_PAAMAYIM_NEKUDOTAYIM error
| From: | johannes@php.net | Date: | Sat, 20 Dec 2008 22:15:20 +0000 |
| Subject: | #46914 [Opn->Bgs]: empty(CONSTANT) throws an T_PAAMAYIM_NEKUDOTAYIM error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132209@lists.php.net to get a copy of this message | ||
ID: 46914
Updated by: johannes@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