diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-12-30 01:56:33 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-12-30 01:56:33 +0000 |
| commit | 2120039c2b7362adf05774672c47a0662d40e7d2 (patch) | |
| tree | 5184add46e45b975c710b2a1b6db67cdf3891415 /ext/filter | |
| parent | 29b0cc278f8f71f42d6e792200da9f131e5a4178 (diff) | |
| download | php-git-2120039c2b7362adf05774672c47a0662d40e7d2.tar.gz | |
MFB: Fixes test #50
Diffstat (limited to 'ext/filter')
| -rw-r--r-- | ext/filter/logical_filters.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 4e4aee96bb..988337aa29 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -386,6 +386,9 @@ void php_filter_float(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ Z_DVAL_P(value) = lval; break; case IS_DOUBLE: + if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) { + goto error; + } zval_dtor(value); Z_TYPE_P(value) = IS_DOUBLE; Z_DVAL_P(value) = dval; |
