From: Ilia Alshanetsky Date: Thu, 5 Aug 2004 00:44:30 +0000 (+0000) Subject: Eliminate unneeded variable. X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1c45f61adf69bb30eda1a213df12d126b252103;p=php Eliminate unneeded variable. --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index b64ad5ffd9..fe577f217b 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -671,13 +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; - ce = *pce; - count = zend_hash_num_elements(&ce->default_properties); array_init(return_value); - if (count > 0) { + if (zend_hash_num_elements(&ce->default_properties) > 0) { HashPosition pos; zval **prop;