From 3bed27f4a685b821c7e453e6210de3cbe853863a Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 29 Jan 2006 16:37:42 +0000 Subject: [PATCH] - An empty string is still a valid string, so there is no reason to return NULL here. --- ext/filter/sanitizing_filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index 67c7b416b3..50d17eb65c 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -189,7 +189,7 @@ void php_filter_string(PHP_INPUT_FILTER_PARAM_DECL) if (new_len == 0) { zval_dtor(value); - Z_TYPE_P(value) = IS_NULL; + ZVAL_EMPTY_STRING(value); return; } -- 2.40.0