diff options
author | Stanislav Malyshev <stas@php.net> | 2004-02-05 09:07:46 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2004-02-05 09:07:46 +0000 |
commit | 1c433049ca51f61687ff97d9ddd0ade03d2da5c3 (patch) | |
tree | 64dd8ac05fb1d7613ae64e46f5c88832b61d72bf /ext/standard/var.c | |
parent | 8487383edea7a602d1bffb3483208ab72e5b40eb (diff) | |
download | php-git-1c433049ca51f61687ff97d9ddd0ade03d2da5c3.tar.gz |
fix serialization
Diffstat (limited to 'ext/standard/var.c')
-rw-r--r-- | ext/standard/var.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c index ff139d69b3..0e060007d2 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -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)) { |