[PHP-DEV] PHP 4.0 Bug #6956 Updated: empty( "0" ) returns true From: Bug Database (php-dev <email protected>)
Date: 09/30/00

ID: 6956
Updated by: sbergmann
Reported By: sb <email protected>
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 <email protected>
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

-- 
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>