#49774 [NEW]: defined delivers wrong value

From: Date: Mon, 05 Oct 2009 09:26:46 +0000
Subject: #49774 [NEW]: defined delivers wrong value
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143266@lists.php.net to get a copy of this message
From: czarnowski at powercms dot org Operating system: Opensuse 11.1 PHP version: 5.3.0 PHP Bug Type: *General Issues Bug description: defined delivers wrong value Description: ------------ This is a part of an included php file: <?php echo '<p>'.INSIDE_POWER_SITE.'</p>'; if (!defined(INSIDE_POWER_SITE)) die('DIRECT ACCESS FORBIDDEN (DEFINE)'); ?> INSIDE_POWERSITE was defined in the script before. The output is: /opt/lampp/htdocs/ps1.3/ DIRECT ACCESS FORBIDDEN (DEFINE) /opt/lampp/htdocs/ps1.3/ is ok But this not because INSIDE_POWER_SITE was defined, as i can look it with the echo statement: DIRECT ACCESS FORBIDDEN (DEFINE) -- Edit bug report at http://bugs.php.net/?id=49774&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49774&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49774&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49774&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49774&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49774&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49774&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49774&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49774&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49774&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49774&r=support Expected behavior: http://bugs.php.net/fix.php?id=49774&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49774&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49774&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49774&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49774&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49774&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49774&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49774&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49774&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49774&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49774&r=mysqlcfg

« previous php.bugs (#143266) next »