mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Fix API
- Update NEWS
This commit is contained in:
parent
8722b31d8a
commit
49e45baf9b
3 changed files with 4 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -1,6 +1,8 @@
|
||||||
PHP 4.0 NEWS
|
PHP 4.0 NEWS
|
||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
?? ??? 200?, Version 4.0.7-dev
|
?? ??? 200?, Version 4.0.7-dev
|
||||||
|
- Floating point numbers are better detected when converting from strings
|
||||||
|
(Zeev, Zend Engine)
|
||||||
- Replaced php.ini-optimized with php.ini-recommended. As the name implies,
|
- Replaced php.ini-optimized with php.ini-recommended. As the name implies,
|
||||||
it's warmly recommended to use this file as the basis for your PHP
|
it's warmly recommended to use this file as the basis for your PHP
|
||||||
configuration, rather than php.ini-dist. (Zeev)
|
configuration, rather than php.ini-dist. (Zeev)
|
||||||
|
|
|
@ -1470,7 +1470,7 @@ PHP_FUNCTION(is_numeric)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IS_STRING:
|
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) {
|
if (result == IS_LONG || result == IS_DOUBLE) {
|
||||||
RETURN_TRUE;
|
RETURN_TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -690,7 +690,7 @@ PHP_FUNCTION(checkdate)
|
||||||
}
|
}
|
||||||
|
|
||||||
if((*year)->type == IS_STRING) {
|
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) {
|
if(res!=IS_LONG && res !=IS_DOUBLE) {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue