summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-13 00:32:04 +0000
committerZeev Suraski <zeev@php.net>2001-08-13 00:32:04 +0000
commit49e45baf9bd3bd084bc29be24e94a56f6c0d702c (patch)
tree32732452a330ec4a1ca92ac53d228e6b40acb07b /ext
parent8722b31d8af773cd108eb3d3cf541b47c6a99db1 (diff)
downloadphp-git-49e45baf9bd3bd084bc29be24e94a56f6c0d702c.tar.gz
- Fix API
- Update NEWS
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/datetime.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 18befd4c4a..5501934dee 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1470,7 +1470,7 @@ PHP_FUNCTION(is_numeric)
break;
case IS_STRING:
- result = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), NULL, NULL);
+ result = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), NULL, NULL, 0);
if (result == IS_LONG || result == IS_DOUBLE) {
RETURN_TRUE;
} else {
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index 7ee353110e..8f9ed8f593 100644
--- a/ext/standard/datetime.c
+++ b/ext/standard/datetime.c
@@ -690,7 +690,7 @@ PHP_FUNCTION(checkdate)
}
if((*year)->type == IS_STRING) {
- res = is_numeric_string((*year)->value.str.val, (*year)->value.str.len, NULL, NULL);
+ res = is_numeric_string((*year)->value.str.val, (*year)->value.str.len, NULL, NULL, 0);
if(res!=IS_LONG && res !=IS_DOUBLE) {
RETURN_FALSE;
}