Re: PHP 4.0 Bug #6992: string "NULL" equals 0

From: Date: Tue, 03 Oct 2000 15:31:38 +0000
Subject: Re: PHP 4.0 Bug #6992: string "NULL" equals 0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-34170@lists.php.net to get a copy of this message
Hi david! On Tue, 03 Oct 2000, david@php.net wrote: > From: david@php.net > Operating system: Linux > PHP version: 4.0 Latest CVS (03/10/2000) > PHP Bug Type: Scripting Engine problem > Bug description: string "NULL" equals 0 > > The text string "NULL" compares equal to 0. This is rubbish. The string is not empty. > NULL may compare equal to 0. The string containing NULL should not. a string compared to an integer in converted to integer, and in this case, it's 0 as in ("gibberish" == 0) == true; I think you should close your bug rep. -- teodor

« previous php.dev (#34170) next »