From: Marcus Boerger Date: Wed, 4 Aug 2004 10:32:43 +0000 (+0000) Subject: MFH missing part X-Git-Tag: php-5.0.1RC1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d84c3213765b199e6f88e03d4ffc88b380a6f945;p=php MFH missing part --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 791159f619..bffa0512cd 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -671,9 +671,10 @@ ZEND_FUNCTION(get_class_vars) if (zend_lookup_class(Z_STRVAL_PP(class_name), Z_STRLEN_PP(class_name), &pce TSRMLS_CC) == FAILURE) { RETURN_FALSE; } else { - int count = zend_hash_num_elements(&ce->default_properties); + int count; ce = *pce; + count = zend_hash_num_elements(&ce->default_properties); array_init(return_value); if (count > 0) {