PHP 4.0 Bug #3239: Can no longer use undefined variables in boolean statements

From: Date: Tue, 18 Jan 2000 06:07:12 +0000
Subject: PHP 4.0 Bug #3239: Can no longer use undefined variables in boolean statements
Groups: php.dev 
Request: Send a blank email to php-dev+get-14729@lists.php.net to get a copy of this message
From: nick@bamboo.com Operating system: Freebsd 3.3 & Rhat Linux 6.1 PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: Can no longer use undefined variables in boolean statements Code fragements like the following now generate an error complaining about the use of "undefined variable". Files which contain code like this will display this error perhaps 20% of the time they load, and display no error the rest of the time. Simply hitting reload will trigger the error on the same file randomly. if ( $thisIsUndefined ) // do something I use this often in my code, and this bug has forced me back to beta2 which does not have this problem. This is the only serious bug I've ever encountered in PHP. Not bad. :) Thanks for the kick ass stuff!

« previous php.dev (#14729) next »