From: Derick Rethans Date: Sun, 29 Jan 2006 16:37:42 +0000 (+0000) Subject: - An empty string is still a valid string, so there is no reason to return X-Git-Tag: RELEASE_1_2~346 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bed27f4a685b821c7e453e6210de3cbe853863a;p=php - An empty string is still a valid string, so there is no reason to return NULL here. --- 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; }