<?php
$a = null;
sort($a);
?>
Majority (if not all) array function, will error out when they encounter a
variable that is not array when an array argument is expected. If anything
this patch add consistency that helps to make code clearer. Heck, Is suspect
a far number of people will be able to find bugs in their code because they
will now be warned that a function is getting a string/null/etc... instead
silently accepting any argument.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php