cvs: ZendEngine2 / zend_operators.h
| From: | Ilia Alshanetsky | Date: | Tue, 18 Jan 2005 00:29:44 +0000 |
| Subject: | cvs: ZendEngine2 / zend_operators.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3306@lists.php.net to get a copy of this message | ||
iliaa Mon Jan 17 19:29:44 2005 EDT
Modified files:
/ZendEngine2 zend_operators.h
Log:
Fixed bug #30726 (-.1 like numbers are not being handled correctly).
http://cvs.php.net/diff.php/ZendEngine2/zend_operators.h?r1=1.92&r2=1.93&ty=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.92 ZendEngine2/zend_operators.h:1.93
--- ZendEngine2/zend_operators.h:1.92 Wed Nov 3 18:13:32 2004
+++ ZendEngine2/zend_operators.h Mon Jan 17 19:29:43 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_operators.h,v 1.92 2004/11/03 23:13:32 derick Exp $ */
+/* $Id: zend_operators.h,v 1.93 2005/01/18 00:29:43 iliaa Exp $ */
#ifndef ZEND_OPERATORS_H
#define ZEND_OPERATORS_H
@@ -88,7 +88,7 @@
*lval = local_lval;
}
return IS_LONG;
- } else if (end_ptr_long == str && *end_ptr_long != '\0' && *str !=
'.') { /* ignore partial string matches */
+ } else if (end_ptr_long == str && *end_ptr_long != '\0' && *str !=
'.' && *str != '-') { /* ignore partial string matches */
return 0;
}
} else {