logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pecl /filter sanitizing_filters.c: msg#00228

Subject: cvs: pecl /filter sanitizing_filters.c
derick          Sun Jan 29 16:37:42 2006 UTC

  Modified files:              
    /pecl/filter        sanitizing_filters.c 
  Log:
  - An empty string is still a valid string, so there is no reason to return
    NULL here.
  
  
http://cvs.php.net/viewcvs.cgi/pecl/filter/sanitizing_filters.c?r1=1.10&r2=1.11&diff_format=u
Index: pecl/filter/sanitizing_filters.c
diff -u pecl/filter/sanitizing_filters.c:1.10 
pecl/filter/sanitizing_filters.c:1.11
--- pecl/filter/sanitizing_filters.c:1.10       Sat Jan 14 15:10:54 2006
+++ pecl/filter/sanitizing_filters.c    Sun Jan 29 16:37:42 2006
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: sanitizing_filters.c,v 1.10 2006/01/14 15:10:54 sniper Exp $ */
+/* $Id: sanitizing_filters.c,v 1.11 2006/01/29 16:37:42 derick Exp $ */
 
 #include "php_filter.h"
 #include "filter_private.h"
@@ -189,7 +189,7 @@
 
        if (new_len == 0) {
                zval_dtor(value);
-               Z_TYPE_P(value) = IS_NULL;
+               ZVAL_EMPTY_STRING(value);
                return;
        }
 




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>