From: Jani Taskinen Date: Thu, 6 Aug 2009 11:02:25 +0000 (+0000) Subject: - Restore PHP-5.2 behaviour when passing null inside object scope to get_class() X-Git-Tag: php-5.4.0alpha1~191^2~2842 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33399d96bfd43647b2d3ab7f3c9ccda07c04d57f;p=php - Restore PHP-5.2 behaviour when passing null inside object scope to get_class() --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index dba4b5ca44..00c235c8b6 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -716,7 +716,7 @@ ZEND_FUNCTION(get_class) zend_uint name_len = 0; int dup; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|o", &obj) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|o!", &obj) == FAILURE) { RETURN_FALSE; }