Skip to content

Commit b2cb1e3

Browse files
committed
Fixes
1 parent 6ae3767 commit b2cb1e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/standard/var_unserializer.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ static inline int object_custom(UNSERIALIZE_PARAMETER, zend_class_entry *ce)
769769
}
770770

771771
if (ce->unserialize == NULL) {
772-
zend_throw_exception_ex(NULL, 0, "Class %s has no unserializer", ZSTR_VAL(ce->name));
773-
object_init_ex(rval, ce);
772+
zend_throw_exception_ex(NULL, 0, "Class %s has no unserializer", ZSTR_VAL(ce->name));
773+
return 0;
774774
} else if (ce->unserialize(rval, ce, (const unsigned char*)*p, datalen, (zend_unserialize_data *)var_hash) != SUCCESS) {
775775
return 0;
776776
}

0 commit comments

Comments
 (0)