]> granicus.if.org Git - php/commitdiff
fix interrupt problem in serialize()
authorStanislav Malyshev <stas@php.net>
Sun, 29 Nov 2009 04:38:46 +0000 (04:38 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 29 Nov 2009 04:38:46 +0000 (04:38 +0000)
ext/standard/var.c

index d568561e43c0dc02307d1b52817df5bea035e2a9..82214418223ca7cea70d2b3bb1120e06eb07269a 100644 (file)
@@ -612,9 +612,9 @@ static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_pt
                                                        break;
                                                }
                                                pefree(prot_name, ce->type & ZEND_INTERNAL_CLASS);
-                                               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "\"%s\" returned as member variable from __sleep() but does not exist", Z_STRVAL_PP(name));
                                                php_var_serialize_string(buf, Z_STRVAL_PP(name), Z_STRLEN_PP(name));
                                                php_var_serialize_intern(buf, nvalp, var_hash TSRMLS_CC);
+                                               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "\"%s\" returned as member variable from __sleep() but does not exist", Z_STRVAL_PP(name));
                                        } while (0);
                                } else {
                                        php_var_serialize_string(buf, Z_STRVAL_PP(name), Z_STRLEN_PP(name));