Patch fix-bug-try for Filter related Bug #53037
Patch version 2011-03-28 22:17 UTC
Return to Bug #53037 |
Download this patch
Patch Revisions:
Developer: jinmoku@hotmail.com
Index: filter.c
===================================================================
--- filter.c (revision 309799)
+++ filter.c (working copy)
@@ -662,6 +662,10 @@
}
php_zval_filter(filtered, filter, filter_flags, options, charset, copy TSRMLS_CC);
+ if (filter_flags & FILTER_FLAG_EMPTY_STRING_NULL && Z_TYPE_PP(filtered) == IS_STRING && Z_STRLEN_PP(filtered) == 0) {
+ zval_dtor(*filtered);
+ ZVAL_NULL(*filtered);
+ }
if (filter_flags & FILTER_FORCE_ARRAY) {
zval *tmp;
|