]> granicus.if.org Git - php/commitdiff
fix serialization
authorStanislav Malyshev <stas@php.net>
Thu, 5 Feb 2004 09:07:46 +0000 (09:07 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 5 Feb 2004 09:07:46 +0000 (09:07 +0000)
ext/standard/var.c

index ff139d69b3f1b0178b4cbc3607d96bd2043234ce..0e060007d274ff4b1e1f1f53373ec7c427c62a81 100644 (file)
@@ -554,12 +554,13 @@ static void php_var_serialize_intern(smart_str *buf, zval **struc, HashTable *va
                        smart_str_appendl(buf, "R:", 2);
                        smart_str_append_long(buf, *var_already);
                        smart_str_appendc(buf, ';');
+                       return;
                } else if(Z_TYPE_PP(struc) == IS_OBJECT) {
                        smart_str_appendl(buf, "r:", 2);
                        smart_str_append_long(buf, *var_already);
                        smart_str_appendc(buf, ';');
+                       return;
                }
-               return;
        }
 
        switch (Z_TYPE_PP(struc)) {