Re: cvs: php-src(PHP_5_2) /ext/filter CREDITS filter.c package.xml

From: Date: Tue, 03 Oct 2006 22:20:06 +0000
Subject: Re: cvs: php-src(PHP_5_2) /ext/filter CREDITS filter.c package.xml
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40886@lists.php.net to get a copy of this message
The filter.c patch is by Pierre, it is designed to fix handling of input strings. I forgot to add the credit in the commit message. On 3-Oct-06, at 6:18 PM, Ilia Alshanetsky wrote:
@@ -533,6 +533,10 @@ if (zend_hash_find(HASH_OF(*filter_args), "flags", sizeof("flags"), (void **)&option) == SUCCESS) { convert_to_long(*option); filter_flags = Z_LVAL_PP(option); + + if (!(filter_flags & FILTER_REQUIRE_ARRAY || filter_flags & FILTER_FORCE_ARRAY)) { + filter_flags |= FILTER_REQUIRE_SCALAR; + } }
Ilia Alshanetsky

« previous php.cvs (#40886) next »