Skip to content

Commit 20ee379

Browse files
committed
fix interrupt problem in serialize()
1 parent deec59a commit 20ee379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,9 @@ static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_pt
612612
break;
613613
}
614614
pefree(prot_name, ce->type & ZEND_INTERNAL_CLASS);
615-
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "\"%s\" returned as member variable from __sleep() but does not exist", Z_STRVAL_PP(name));
616615
php_var_serialize_string(buf, Z_STRVAL_PP(name), Z_STRLEN_PP(name));
617616
php_var_serialize_intern(buf, nvalp, var_hash TSRMLS_CC);
617+
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "\"%s\" returned as member variable from __sleep() but does not exist", Z_STRVAL_PP(name));
618618
} while (0);
619619
} else {
620620
php_var_serialize_string(buf, Z_STRVAL_PP(name), Z_STRLEN_PP(name));

0 commit comments

Comments
 (0)