#40096 [Opn->Bgs]: PHP claims that 'GLOBALS' == 0
| From: | derick@php.net | Date: | Thu, 11 Jan 2007 08:07:57 +0000 |
| Subject: | #40096 [Opn->Bgs]: PHP claims that 'GLOBALS' == 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107514@lists.php.net to get a copy of this message | ||
ID: 40096
Updated by: derick@php.net
Reported By: christian at rishoj dot net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Ubuntu Dapper
PHP Version: 5.2.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 05:53:06] judas dot iscariote at gmail dot com
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
------------------------------------------------------------------------
[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