2009/3/16 Stanislav Malyshev <s...@zend.com>: > Hi! > >>> Log: >>> Fixed bug #47664 (get_class returns NULL instead of FALSE) >> >> [...] >>> >>> @@ -716,7 +716,7 @@ >>> int dup; >>> if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|o", >>> &obj) == FAILURE) { >>> - return; >>> + RETURN_FALSE; >>> } >> >> 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. -- 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