diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-10-03 22:18:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-10-03 22:18:08 +0000 |
commit | c67068b52b95339efead2ee0404e464db64c5863 (patch) | |
tree | 822b79b941e27210eacb0094e412d21d41205b15 | |
parent | 557838efa45f2b23ce2a17b5b54c2e8d22f1336d (diff) | |
download | php-git-c67068b52b95339efead2ee0404e464db64c5863.tar.gz |
Shoehorn myself into the credits.
-rw-r--r-- | ext/filter/CREDITS | 2 | ||||
-rw-r--r-- | ext/filter/filter.c | 4 | ||||
-rw-r--r-- | ext/filter/package.xml | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/ext/filter/CREDITS b/ext/filter/CREDITS index 19cfe1d8db..8d75401f77 100644 --- a/ext/filter/CREDITS +++ b/ext/filter/CREDITS @@ -1,2 +1,2 @@ Input Filter -Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye +Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 28a672060f..9735c0962d 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -533,6 +533,10 @@ static void php_filter_call(zval **filtered, long filter, zval **filter_args, co 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; + } } if (zend_hash_find(HASH_OF(*filter_args), "options", sizeof("options"), (void **)&option) == SUCCESS) { diff --git a/ext/filter/package.xml b/ext/filter/package.xml index 28ad122a5b..1c2c914c55 100644 --- a/ext/filter/package.xml +++ b/ext/filter/package.xml @@ -8,6 +8,12 @@ of filters and mechanisms that users can use to safely access their input data. </description> <lead> + <name>Ilia Alshanetsky</name> + <user>iliaa</user> + <email>iliaa@php.net</email> + <active>yes</active> + </lead> + <lead> <name>Pierre-Alain Joye</name> <user>pajoye</user> <email>pierre@php.net</email> |