Date: 09/29/00
- Next message: chris <email protected>: "[PHP-DEV] PHP 4.0 Bug #6957: Zend strlen function gets re-defined"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6955 Updated: Usint XML parser in a class does not work any longer [ref Bug id #6671]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: chris <email protected>: "[PHP-DEV] PHP 4.0 Bug #6957: Zend strlen function gets re-defined"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6955 Updated: Usint XML parser in a class does not work any longer [ref Bug id #6671]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

