For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > July 2007 > cvs: ZendEngine2 / zend_API.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 / zend_API.c
Dmitry Stogov

2007-07-11, 6:57 pm

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/ZendE...7&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;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com