Skip to content

Commit 0a513b2

Browse files
Another
1 parent 7a4f301 commit 0a513b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/filter/filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval
264264
"filter validation failed: object of type %s has no __toString() method",
265265
ZSTR_VAL(ce->name)
266266
);
267+
ZVAL_NULL(value);
267268
return;
268269
}
269270
/* #67167: doesn't return null on failure for objects */

0 commit comments

Comments
 (0)