iliaa           Thu Jul 15 22:02:09 2004 EDT

  Added files:                 (Branch: PHP_5_0)
    /php-src/tests/lang bug28800.phpt 

  Modified files:              
    /ZendEngine2        zend_operators.h 
  Log:
  Fixed bug #28800 (strings beginning with "inf" improperly converted).
  
  
http://cvs.php.net/diff.php/ZendEngine2/zend_operators.h?r1=1.88&r2=1.88.2.1&ty=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.88 ZendEngine2/zend_operators.h:1.88.2.1
--- ZendEngine2/zend_operators.h:1.88   Sat Apr  3 06:09:39 2004
+++ ZendEngine2/zend_operators.h        Thu Jul 15 22:02:09 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.h,v 1.88 2004/04/03 11:09:39 andi Exp $ */
+/* $Id: zend_operators.h,v 1.88.2.1 2004/07/16 02:02:09 iliaa Exp $ */
 
 #ifndef ZEND_OPERATORS_H
 #define ZEND_OPERATORS_H
@@ -87,6 +87,8 @@
                                *lval = local_lval;
                        }
                        return IS_LONG;
+               } else if (end_ptr_long == str && *end_ptr_long != '\0') { /* ignore 
partial string matches */
+                       return 0;
                }
        } else {
                end_ptr_long=NULL;

http://cvs.php.net/co.php/php-src/tests/lang/bug28800.phpt?r=1.1&p=1
Index: php-src/tests/lang/bug28800.phpt
+++ php-src/tests/lang/bug28800.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to