cvs: ZendEngine2 / zend_API.c
| From: | Dmitry Stogov | Date: | Wed, 11 Jul 2007 12:57:36 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5892@lists.php.net to get a copy of this message | ||
dmitry Wed Jul 11 12:57:36 2007 UTC
Modified files:
/ZendEngine2 zend_API.c
Log:
Made uniform error reporting for unicode/non-unicode modes
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.436&r2=1.437&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.436 ZendEngine2/zend_API.c:1.437
--- ZendEngine2/zend_API.c:1.436 Tue Jul 10 14:42:43 2007
+++ ZendEngine2/zend_API.c Wed Jul 11 12:57:36 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.436 2007/07/10 14:42:43 tony2001 Exp $ */
+/* $Id: zend_API.c,v 1.437 2007/07/11 12:57:36 dmitry Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -368,7 +368,7 @@
double d;
int type;
- if ((type = is_numeric_unicode(Z_USTRVAL_PP(arg), Z_USTRLEN_PP(arg), p, &d, 0)) == 0) {
+ if ((type = is_numeric_unicode(Z_USTRVAL_PP(arg), Z_USTRLEN_PP(arg), p, &d, -1)) == 0) {
return "long";
} else if (type == IS_DOUBLE) {
*p = (long) d;