1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00

Made uniform error reporting for unicode/non-unicode modes

This commit is contained in:
Dmitry Stogov
2007-07-11 12:57:36 +00:00
parent 7943e812fb
commit 34383f0bd0
+1 -1
View File
@@ -368,7 +368,7 @@ static char *zend_parse_arg_impl(int arg_num, zval **arg, va_list *va, char **sp
double d;
int type;
if ((type = is_numeric_unicode(Z_USTRVAL_PP(arg), Z_USTRLEN_PP(arg), p, &d, 0)) == 0) {
if ((type = is_numeric_unicode(Z_USTRVAL_PP(arg), Z_USTRLEN_PP(arg), p, &d, -1)) == 0) {
return "long";
} else if (type == IS_DOUBLE) {
*p = (long) d;