cvs: php4 / NEWS /ext/standard basic_functions.c datetime.c
| From: | Zeev Suraski | Date: | Mon, 13 Aug 2001 00:32:05 +0000 |
| Subject: | cvs: php4 / NEWS /ext/standard basic_functions.c datetime.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6760@lists.php.net to get a copy of this message | ||
zeev Sun Aug 12 20:32:05 2001 EDT
Modified files:
/php4 NEWS
/php4/ext/standard basic_functions.c datetime.c
Log:
- Fix API
- Update NEWS
Index: php4/NEWS
diff -u php4/NEWS:1.732 php4/NEWS:1.733
--- php4/NEWS:1.732 Sat Aug 11 11:22:56 2001
+++ php4/NEWS Sun Aug 12 20:32:03 2001
@@ -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: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.382 php4/ext/standard/basic_functions.c:1.383
--- php4/ext/standard/basic_functions.c:1.382 Sat Aug 11 13:03:36 2001
+++ php4/ext/standard/basic_functions.c Sun Aug 12 20:32:03 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.382 2001/08/11 17:03:36 zeev Exp $ */
+/* $Id: basic_functions.c,v 1.383 2001/08/13 00:32:03 zeev Exp $ */
#include "php.h"
#include "php_main.h"
@@ -1470,7 +1470,7 @@
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: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.74 php4/ext/standard/datetime.c:1.75
--- php4/ext/standard/datetime.c:1.74 Sat Aug 11 13:03:36 2001
+++ php4/ext/standard/datetime.c Sun Aug 12 20:32:04 2001
@@ -19,7 +19,7 @@
*/
-/* $Id: datetime.c,v 1.74 2001/08/11 17:03:36 zeev Exp $ */
+/* $Id: datetime.c,v 1.75 2001/08/13 00:32:04 zeev Exp $ */
#include "php.h"
@@ -690,7 +690,7 @@
}
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;
}