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.3.1RC1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc74c5136e227bdc2ba1f2ce6f99170a7cf18cc8;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 4c6d29c8f7..72372180a8 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -747,7 +747,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; }