summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-05 00:44:30 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-05 00:44:30 +0000
commitb1c45f61adf69bb30eda1a213df12d126b252103 (patch)
treed82d89a06d39f73755f5e84d67b5282354f4c250
parent91e64022300df980fa4bdefe2d877f17e50d3a04 (diff)
downloadphp-git-b1c45f61adf69bb30eda1a213df12d126b252103.tar.gz
Eliminate unneeded variable.
-rw-r--r--Zend/zend_builtin_functions.c5
1 files changed, 1 insertions, 4 deletions
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;