Date: 12/28/99
- Next message: Bug Database: "[PHP-DEV] Bug #2961 Updated: Oracle 8 error handling functions does not work"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3020 Updated: mysql module won't compile as a DSO"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Reply: Andi Gutmans: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<?
error_reporting(-1);
$a = array();
$b = "hallo";
var_dump($a != $b);
var_dump($a == $b);
var_dump($a === $b);
?>
outputs:
X-Powered-By: PHP/4.0b4-dev
Content-Type: text/html
string(0) ""
string(0) ""
bool(false)
i really think this *should* output:
bool(true);
bool(false);
bool(false);
or spit a warining in case 1 & 2!
question is:
- do we want the warning? or
- can we decide on a string being bigger or smaller than an object/array
(and implement that in compare_function())
tc
-- 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: Bug Database: "[PHP-DEV] Bug #2961 Updated: Oracle 8 error handling functions does not work"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3020 Updated: mysql module won't compile as a DSO"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Reply: Andi Gutmans: "Re: [PHP-DEV] $string != $array should throw a warning!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

