PHP 4.0 Bug #6956: empty( "0" ) returns true

From: Date: Sat, 30 Sep 2000 03:54:57 +0000
Subject: PHP 4.0 Bug #6956: empty( "0" ) returns true
Groups: php.dev 
Request: Send a blank email to php-dev+get-33895@lists.php.net to get a copy of this message
From: sb@phpopentracker.de Operating system: Windows 2000 Pro PHP version: 4.0 Latest CVS (29/09/2000) PHP Bug Type: Variables related Bug description: empty( "0" ) returns true The following script <?php $str = "0"; print empty( $str ); ?> outputs "true". Is this a bug or a feature?

« previous php.dev (#33895) next »