cvs: ZendEngine2 / zend_operators.h
| From: | Ilia Alshanetsky | Date: | Wed, 15 Sep 2004 13:41:45 +0000 |
| Subject: | cvs: ZendEngine2 / zend_operators.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2978@lists.php.net to get a copy of this message | ||
iliaa Wed Sep 15 09:41:45 2004 EDT
Modified files:
/ZendEngine2 zend_operators.h
Log:
MFH: Fixed a bug causing ".123" * "90" and alike to return a 0.
http://cvs.php.net/diff.php/ZendEngine2/zend_operators.h?r1=1.90&r2=1.91&ty=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.90 ZendEngine2/zend_operators.h:1.91
--- ZendEngine2/zend_operators.h:1.90 Sat Sep 11 10:22:35 2004
+++ ZendEngine2/zend_operators.h Wed Sep 15 09:41:45 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_operators.h,v 1.90 2004/09/11 14:22:35 derick Exp $ */
+/* $Id: zend_operators.h,v 1.91 2004/09/15 13:41:45 iliaa Exp $ */
#ifndef ZEND_OPERATORS_H
#define ZEND_OPERATORS_H
@@ -87,7 +87,7 @@
*lval = local_lval;
}
return IS_LONG;
- } else if (end_ptr_long == str && *end_ptr_long != '\0') { /* ignore partial
string matches */
+ } else if (end_ptr_long == str && *end_ptr_long != '\0' && *str !=
'.') { /* ignore partial string matches */
return 0;
}
} else {