Is there *ANY* serious reason why NULL is not allowed in place of an object? PHP will become *really* odd if this is the way it goes. People won't stick to this new feature...
There was a (very) long discussion about this on this mailing list a couple of weeks ago, please check the archive. It was decided to leave it the way it is for now.
Also, these errors are hard to track because they refer to
the line number where the function definition is, not where the actual violation was comitted.
This is a good point and the same applies to the "Missing argument" error message. Best would be if both lines are mentioned.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php