[PHP-DEV] PHP 4.0 Bug #6956: empty( "0" ) returns true From: sb <email protected>
Date: 09/29/00

From: sb <email protected>
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?

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>