On 19.11.2005 14:20, Stanislav Malyshev wrote:
AD>>I think yes, NULL should be able to represent "nothing of any type".
AD>>That makes it consistent and that's what I would expect.
Would you expect to get a warning when you pass variable that is
typehinted as array to, for example, join()?
Would you expect a warning if you pass null there?
No, I wouldn't expect to get a warning from a function which uses array() for
typehinting.
NULL is just "nothing", if a function were expecting an array and got nothing -
fine, we got nothing as the result either.
--
Wbr,
Antony Dovgal
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|