Re: PHP 4.0 Bug #7698: False and FALSE constants not reliable
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 08 Nov 2000 14:12:54 +0000 |
| Subject: | Re: PHP 4.0 Bug #7698: False and FALSE constants not reliable | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37430@lists.php.net to get a copy of this message | ||
On 8 Nov 2000 steve@szabos.com wrote:
> 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
>
Does it work with '!=='?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>