Skip to content

Commit 49e45ba

Browse files
committed
- Fix API
- Update NEWS
1 parent 8722b31 commit 49e45ba

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PHP 4.0 NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 200?, Version 4.0.7-dev
4+
- Floating point numbers are better detected when converting from strings
5+
(Zeev, Zend Engine)
46
- Replaced php.ini-optimized with php.ini-recommended. As the name implies,
57
it's warmly recommended to use this file as the basis for your PHP
68
configuration, rather than php.ini-dist. (Zeev)

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ PHP_FUNCTION(is_numeric)
14701470
break;
14711471

14721472
case IS_STRING:
1473-
result = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), NULL, NULL);
1473+
result = is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), NULL, NULL, 0);
14741474
if (result == IS_LONG || result == IS_DOUBLE) {
14751475
RETURN_TRUE;
14761476
} else {

ext/standard/datetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ PHP_FUNCTION(checkdate)
690690
}
691691

692692
if((*year)->type == IS_STRING) {
693-
res = is_numeric_string((*year)->value.str.val, (*year)->value.str.len, NULL, NULL);
693+
res = is_numeric_string((*year)->value.str.val, (*year)->value.str.len, NULL, NULL, 0);
694694
if(res!=IS_LONG && res !=IS_DOUBLE) {
695695
RETURN_FALSE;
696696
}

0 commit comments

Comments
 (0)