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

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to