PHP 4.0 Bug #3355: empty() returns true if $var == "0"

From: Date: Sun, 30 Jan 2000 06:14:33 +0000
Subject: PHP 4.0 Bug #3355: empty() returns true if $var == "0"
Groups: php.dev 
Request: Send a blank email to php-dev+get-15049@lists.php.net to get a copy of this message
From: jbrindle@mail.snu.edu Operating system: slackware 7.0 PHP version: 4.0 Latest CVS (30/01/2000) PHP Bug Type: Misbehaving function Bug description: empty() returns true if $var == "0" if (empty(0)) echo "empty"; 0 shouldn't return a true from empty()

« previous php.dev (#15049) next »