]> granicus.if.org Git - php/commitdiff
- Fix API
authorZeev Suraski <zeev@php.net>
Mon, 13 Aug 2001 00:32:04 +0000 (00:32 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 13 Aug 2001 00:32:04 +0000 (00:32 +0000)
- Update NEWS

NEWS
ext/standard/basic_functions.c
ext/standard/datetime.c

diff --git a/NEWS b/NEWS
index 122e251c911d94b0ef98963ec2bd3ee34f4b4d3d..29110bf712288746da70ca0de54b2d2dd7f70aef 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP 4.0                                                                    NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 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,
   it's warmly recommended to use this file as the basis for your PHP
   configuration, rather than php.ini-dist.  (Zeev)
index 18befd4c4a31788e411880e52ab35c1f6125a6ca..5501934deec482e60be16a43ac318062b6000d78 100644 (file)
@@ -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 {
index 7ee353110e12e38301ee68896494989700f5beed..8f9ed8f5934995c3b746cb69631f4b957ebbfd14 100644 (file)
@@ -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;   
                }