#31098 [NEW]: isset false positive

From: Date: Wed, 15 Dec 2004 16:27:34 +0000
Subject: #31098 [NEW]: isset false positive
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70275@lists.php.net to get a copy of this message
From: jyounger at caedic dot com Operating system: Slackare Linux Kernel 2.4.26 PHP version: 5.0.3 PHP Bug Type: Zend Engine 2 problem Bug description: isset false positive Description: ------------ isset() when run using mod_php returns a false positive when checking a string variable for the presence of a property. isset() when run under the cli behaves correctly and returns false. This is in PHP 5.0.3RC2. Reproduce code: --------------- <?php $simpleString = "Bogus String Text"; if (isset($simpleString->nonExistentStringProperty)) { echo "This line should not execute"; } else { echo "This line should execute"; } ?> Expected result: ---------------- This line should execute Actual result: -------------- This line should not execute -- Edit bug report at http://bugs.php.net/?id=31098&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31098&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31098&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31098&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31098&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31098&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31098&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31098&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31098&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31098&r=support Expected behavior: http://bugs.php.net/fix.php?id=31098&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31098&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31098&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31098&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31098&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31098&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31098&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31098&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31098&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31098&r=mysqlcfg

« previous php.bugs (#70275) next »