1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

MFB: Fixed segfault in filter extension when using callbacks.

This commit is contained in:
Felipe Pena
2008-02-24 18:41:08 +00:00
parent c47f4b9fd0
commit 6a128d5614
+1 -1
View File
@@ -322,7 +322,7 @@ static void php_zval_filter(zval **value, long filter, long flags, zval *options
filter_func.function(*value, flags, options, charset TSRMLS_CC);
if (
options &&
options && (Z_TYPE_P(options) == IS_ARRAY || Z_TYPE_P(options) == IS_OBJECT) &&
((flags & FILTER_NULL_ON_FAILURE && Z_TYPE_PP(value) == IS_NULL) ||
(!(flags & FILTER_NULL_ON_FAILURE) && Z_TYPE_PP(value) == IS_BOOL && Z_LVAL_PP(value) == 0)) &&
zend_hash_exists(HASH_OF(options), "default", sizeof("default"))