PHP 4.0 Bug #8366: the results returned for isset() do not seem to match those returned in php3.

From: Date: Thu, 21 Dec 2000 21:04:22 +0000
Subject: PHP 4.0 Bug #8366: the results returned for isset() do not seem to match those returned in php3.
Groups: php.dev 
Request: Send a blank email to php-dev+get-42081@lists.php.net to get a copy of this message
From: beth@iensemble.com Operating system: same results in Linux; Apache and Win NT PHP version: 4.0.1pl2 PHP Bug Type: *Function Specific Bug description: the results returned for isset() do not seem to match those returned in php3. <?php echo "can edit: ".$c_edit; if (isset($c_edit)){ $edit=1; } else { $edit = 0; } $edit2 = isset($c_edit); echo "<br>edit: ".$edit; echo "<br>edit2: ".$edit2; ?> for php3.0.14 (http://stage.iensemble.com/beth/isset_test.php) , the above code returns thee same results for the variables $edit and $edit2. In php 4.0.1pl2 (http://www.ddeb3.org/php/isset_test.php), however, no value is returned for $edit2. This seems to happen whether on WinNT, Apache or Linux systems. -- Edit Bug report at: http://bugs.php.net/?id=8366&edit=1

« previous php.dev (#42081) next »