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

From: Date: Tue, 03 Oct 2000 12:01:12 +0000
Subject: PHP 4.0 Bug #6992: string "NULL" equals 0
Groups: php.dev 
Request: Send a blank email to php-dev+get-34123@lists.php.net to get a copy of this message
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. [david@serena php4]$ ./php <? if ("NULL" == 0) echo "This is not good."; ?> X-Powered-By: PHP/4.0.3RC1 Content-type: text/html This is not good. ./configure --with-config-file-path=pwd

« previous php.dev (#34123) next »