ID: 40096
Comment by: judas dot iscariote at gmail dot com
Reported By: christian at rishoj dot net
Status: Open
Bug Type: Scripting Engine problem
Operating System: Ubuntu Dapper
PHP Version: 5.2.0
New Comment:
Turn on error_reporting, this is the expected behaviuor
php -r 'echo ('GLOBALS' == 0) ? 'yes' : 'no'; echo "\n";'
PHP Notice: Use of undefined constant GLOBALS - assumed 'GLOBALS' in
Command line code on line 1
PHP Notice: Use of undefined constant yes - assumed 'yes' in Command
line code on line 1
yes
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 04:44:15] christian at rishoj dot net
Description:
------------
The expression
'GLOBALS' == 0
evaluates to true.
Reproduce code:
---------------
php -r 'echo ('GLOBALS' == 0) ? 'yes' : 'no'; echo "\n";'
Expected result:
----------------
no
Actual result:
--------------
yes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40096&edit=1