Bug #2100 Updated: Problems with ? : arrays and isset

From: Date: Sun, 16 Jun 2002 12:37:43 +0000
Subject: Bug #2100 Updated: Problems with ? : arrays and isset
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10659@lists.php.net to get a copy of this message
ID: 2100 Updated by: sander@php.net Reported By: drew@elysium.ltd.uk -Status: Open +Status: Bogus Bug Type: Misbehaving function Operating System: Linux RH 6.0 PHP Version: 3.0.12 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-11-11 19:54:43] joey@cvs.php.net The problem may be in $y["x"] = isSet($y["x"]) ? "Set" : "Not Set"; Maybe there is some kind of "look behind" being done? This looks like a fun one! :) ------------------------------------------------------------------------ [1999-08-18 04:55:13] drew@elysium.ltd.uk <? $x = isSet($x) ? "Set" : "Not Set"; $y["x"] = isSet($y["x"]) ? "Set" : "Not Set"; if (isSet($z["x"])) $z["x"] = "Set"; else $z["x"] = "Not Set"; print "x = " . $x . "<BR>\n"; print "y[\"x\"] = " . $y["x"] . "<BR>\n"; print "z[\"x\"] = " . $z["x"] . "<BR>\n"; ?> $x gets set to "Not Set" - Correct $y["x"] gets set to "Set" - Not Correct $y["x"] gets set to "Not Set" - Correct This problem does not happen in 4.0b2 only in 3.0.12 (and I suppose other versions of php3.0.x) Rgds Drew The variables is question have never been used before, as can be seen. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2100&edit=1

« previous php.bugs (#10659) next »