]> granicus.if.org Git - php/commitdiff
fix #6348
authorThies C. Arntzen <thies@php.net>
Mon, 11 Dec 2000 12:52:52 +0000 (12:52 +0000)
committerThies C. Arntzen <thies@php.net>
Mon, 11 Dec 2000 12:52:52 +0000 (12:52 +0000)
ext/standard/var.c

index 7c9f4d9044474523eb461ff81ebe5ee0de9f0bbe..3fb3f2fb25f29357d742bb1eb4a8ef393315914e 100644 (file)
@@ -16,7 +16,7 @@
    |          Thies C. Arntzen <thies@thieso.net>                         |
    |          Sascha Schumann <sascha@schumann.cx>                        |
    +----------------------------------------------------------------------+
- */
+*/
 
 /* $Id$ */
 
@@ -263,9 +263,8 @@ void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
                                                                        continue;
                                                                }
 
-                                                               php_var_serialize(buf, name, NULL);
-                                                               
                                                                if (zend_hash_find((*struc)->value.obj.properties,(*name)->value.str.val,(*name)->value.str.len+1,(void*)&d) == SUCCESS) {
+                                                                       php_var_serialize(buf, name, NULL);
                                                                        php_var_serialize(buf,d,var_hash);      
                                                                }
                                                        }