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

From: Date: Sat, 30 Sep 2000 04:13:58 +0000
Subject: PHP 4.0 Bug #6956 Updated: empty( "0" ) returns true
Groups: php.dev 
Request: Send a blank email to php-dev+get-33897@lists.php.net to get a copy of this message
ID: 6956 Updated by: sbergmann Reported By: sb@phpopentracker.de Status: Closed Bug Type: Variables related Assigned To: Comments: Dear Sebastian, please read the manual entry on empty(). Yours, Sebastian Previous Comments: --------------------------------------------------------------------------- [2000-09-29 23:54:57] sb@phpopentracker.de The following script <?php $str = "0"; print empty( $str ); ?> outputs "true". Is this a bug or a feature? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6956

« previous php.dev (#33897) next »