#40096 [Com]: PHP claims that 'GLOBALS' == 0

From: Date: Thu, 11 Jan 2007 05:53:07 +0000
Subject: #40096 [Com]: PHP claims that 'GLOBALS' == 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107450@lists.php.net to get a copy of this message
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

« previous php.bugs (#107450) next »