From f4a3454c522a6a32acfe33eddbb975c5cf479fee Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 12 Sep 2005 07:14:54 +0000 Subject: [PATCH] Fix for exceptions in __sleep() --- ext/standard/var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/var.c b/ext/standard/var.c index 8486cc8451..4fbead5034 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -933,7 +933,7 @@ static void php_var_serialize_intern(smart_str *buf, zval **struc, HashTable *va res = call_user_function_ex(CG(function_table), struc, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); - if (res == SUCCESS) { + if (res == SUCCESS && !EG(exception)) { if (retval_ptr) { if (HASH_OF(retval_ptr)) { php_var_serialize_class(buf, struc, retval_ptr, -- 2.50.1