On Mon, Mar 16, 2009 at 6:43 PM, Stanislav Malyshev <[email protected]> wrote: > Hi! > >>> If all other functions return NULL with wrong args, why should get_class >>> return false? Is there any value in it besides the fact that docs say so? >> >> The main reason is the documentation. It introduces a useless BC break >> which was reported in #47664. > > Well, sometimes a bug is a bug and we can't keep BC just for bugs, unless it > is useful for something.
The new parsing API and the strictness of this "return NULL" rule is new and arguable. As it is not that important (work 'round is easy), I tend to prefer to minimize the wtf instead of being too strict. -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
