Skip to content

Commit e94cd60

Browse files
GirgiasTysonAndre
andauthored
Update ext/standard/var.c
Co-authored-by: Tyson Andre <tyson.andre@uwaterloo.ca>
1 parent 0b9c524 commit e94cd60

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
@@ -770,7 +770,7 @@ static HashTable* php_var_serialize_call_sleep(zend_object *obj, zend_function *
770770
zend_call_known_instance_method(fn, obj, &retval, /* param_count */ 0, /* params */ NULL);
771771
BG(serialize_lock)--;
772772

773-
if (Z_ISUNDEF(retval)) {
773+
if (Z_ISUNDEF(retval) || EG(exception)) {
774774
zval_ptr_dtor(&retval);
775775
return NULL;
776776
}

0 commit comments

Comments
 (0)