On Mon, 2009-03-16 at 18:41 +0100, Pierre Joye wrote:
> >> Usually we return NULL in case parameter parsing fails, this is
> >> documented like this:
> >
> > 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.

The documentation is just like with other functions returning NULL for
param parsing and false for other errors. While browsing a bit through
the docs I couldn't find any function mentioning "Returns NULL in case
parameter parsing fails" even though most functions do.

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to