]> granicus.if.org Git - php/commitdiff
Made uniform error reporting for unicode/non-unicode modes
authorDmitry Stogov <dmitry@php.net>
Wed, 11 Jul 2007 12:57:36 +0000 (12:57 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 11 Jul 2007 12:57:36 +0000 (12:57 +0000)
Zend/zend_API.c

index 8cc0819ea3da1430f45f29896206c13fdee61dcb..20839caeff789aaa7412f44d6cffc1cc8eb09735 100644 (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;