PHP 4.0 Bug #7698: False and FALSE constants not reliable

From: Date: Wed, 08 Nov 2000 13:33:42 +0000
Subject: PHP 4.0 Bug #7698: False and FALSE constants not reliable
Groups: php.dev 
Request: Send a blank email to php-dev+get-37426@lists.php.net to get a copy of this message
From: steve@szabos.com Operating system: Windows 2000 Advanced Server PHP version: 4.0.3pl1 PHP Bug Type: *General Issues Bug description: False and FALSE constants not reliable When is the FALSE constant not False? $nResult = odbc_autocommit ($odbcConnection, FALSE) if ( $nResult != FALSE ) echo "ERROR: Unable to turn off commits!"; The above code worked most of the time, but sporatically reported an "ERROR:..." condition. I tried changing "FALSE" to "False", but saw the same behavior. I am using the ISAPI DLL. Perhaps there is a re-entrancy problem? It works fine for a while after I restart IIS. For now, I switched my code to use 0 (zero) and 1 (one) everywhere, instead of FALSE and TRUE. This seems to have fixed the problem. Steve -- Edit Bug report at: http://bugs.php.net/?id=7698&edit=1

« previous php.dev (#37426) next »