Skip to content

Commit 56afe2f

Browse files
committed
Incomplete class may have only single "MAGIC_MEMBER"
1 parent b0c7ea4 commit 56afe2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/var.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ static void php_var_serialize_nested_data(smart_str *buf, zval *struc, HashTable
926926

927927
ZEND_HASH_FOREACH_KEY_VAL_IND(ht, index, key, data) {
928928
if (incomplete_class && zend_string_equals_literal(key, MAGIC_MEMBER)) {
929+
incomplete_class = 0;
929930
continue;
930931
}
931932

0 commit comments

Comments
 (0)