diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-11-17 00:19:23 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-11-17 00:19:23 +0000 |
| commit | b5c8fcb5fafdec4ac18c8b73b71a17c6d3e0a5a0 (patch) | |
| tree | 8d345e86537254eabeb31e86aa5ce24be9faddc6 /Zend/zend_API.c | |
| parent | 158ebbd9b5c30892f50ce0841f4f58a85a67a29d (diff) | |
| download | php-git-b5c8fcb5fafdec4ac18c8b73b71a17c6d3e0a5a0.tar.gz | |
Allow zend_parse_parameters to handle non-well formed integers, but raise
E_NOTICE in the process.
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 5aa684b4c8..af70c3dd48 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -296,7 +296,7 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC) double d; int type; - if ((type = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), p, &d, 0)) == 0) { + if ((type = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), p, &d, -1)) == 0) { return "long"; } else if (type == IS_DOUBLE) { *p = (long) d; @@ -330,7 +330,7 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC) long l; int type; - if ((type = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), &l, p, 0)) == 0) { + if ((type = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), &l, p, -1)) == 0) { return "double"; } else if (type == IS_LONG) { *p = (double) l; |
