]> granicus.if.org Git - php/commitdiff
- An empty string is still a valid string, so there is no reason to return
authorDerick Rethans <derick@php.net>
Sun, 29 Jan 2006 16:37:42 +0000 (16:37 +0000)
committerDerick Rethans <derick@php.net>
Sun, 29 Jan 2006 16:37:42 +0000 (16:37 +0000)
  NULL here.

ext/filter/sanitizing_filters.c

index 67c7b416b3d0bf35c32e03913789ccdf1c50448e..50d17eb65c51902408847be0c022e12aa8a6c465 100644 (file)
@@ -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;
        }