]> granicus.if.org Git - php/commitdiff
MFH.
authorAndrei Zmievski <andrei@php.net>
Tue, 7 Feb 2006 00:33:13 +0000 (00:33 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 7 Feb 2006 00:33:13 +0000 (00:33 +0000)
Zend/zend_builtin_functions.c

index 5052f7b5e03c92b736c47fb9d94bc1a3fee6c5f4..af2f1b039b648bac2693049e77372a7b06969a70 100644 (file)
@@ -768,11 +768,16 @@ ZEND_FUNCTION(get_object_vars)
                RETURN_FALSE;
        }
 
+       properties = Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC);
+
+       if (properties == NULL) {
+               RETURN_FALSE;
+       }
+
        instanceof = EG(This) && instanceof_function(Z_OBJCE_P(EG(This)), Z_OBJCE_PP(obj) TSRMLS_CC);
 
        array_init(return_value);
 
-       properties = Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC);
        zend_hash_internal_pointer_reset_ex(properties, &pos);
 
        while (zend_hash_get_current_data_ex(properties, (void **) &value, &pos) == SUCCESS) {