#18768 [NEW]: true / false constants not defined with apache

From: Date: Wed, 07 Aug 2002 07:58:50 +0000
Subject: #18768 [NEW]: true / false constants not defined with apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16121@lists.php.net to get a copy of this message
From: phpsurf@ifrance.com Operating system: windows PHP version: 4CVS-2002-08-07 PHP Bug Type: Zend Engine 2 problem Bug description: true / false constants not defined with apache The constants true/false (and certainly other pre-defined constants) are not defined when PHP is called from apache, but they are when PHP is called in command line ! here is a test script: test.php <?php var_dump(PHP_VERSION, true, TRUE); ?> 1- on command line : C:\php>php test.php outputs : string(9) "4.3.0-dev" bool(true) bool(true) 2- but called from apache : http://localhost/test.php it outputs : string(11) "PHP_VERSION" string(4) "true" string(4) "TRUE" see the constants are no more booleans but strings ! I'm using PHP 4.3.0 alpha 2 with Apache 1.3.24 -- Edit bug report at http://bugs.php.net/?id=18768&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18768&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18768&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18768&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18768&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18768&r=support Expected behavior: http://bugs.php.net/fix.php?id=18768&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18768&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18768&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18768&r=globals

« previous php.bugs (#16121) next »