cvs: ZendEngine2(PHP_5_2) / zend_language_scanner.l

[email protected] ("Matt Wilmas")
Newsgroups php.zend-engine.cvs
Message-ID <cvsmattwil1210411107@cvsserver>
mattwil		Sat May 10 09:18:27 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /ZendEngine2	zend_language_scanner.l 
  Log:
  MFH: Restore end check for "escape" strings
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_language_scanner.l?r1=1.131.2.11.2.16&r2=1.131.2.11.2.17&diff_format=u
Index: ZendEngine2/zend_language_scanner.l
diff -u ZendEngine2/zend_language_scanner.l:1.131.2.11.2.16 ZendEngine2/zend_language_scanner.l:1.131.2.11.2.17
--- ZendEngine2/zend_language_scanner.l:1.131.2.11.2.16	Fri May  9 10:29:01 2008
+++ ZendEngine2/zend_language_scanner.l	Sat May 10 09:18:27 2008
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_language_scanner.l,v 1.131.2.11.2.16 2008/05/09 10:29:01 mattwil Exp $ */
+/* $Id: zend_language_scanner.l,v 1.131.2.11.2.17 2008/05/10 09:18:27 mattwil Exp $ */
 
 #define yyleng SCNG(yy_leng)
 #define yytext SCNG(yy_text)
@@ -792,6 +792,10 @@
 	while (s<end) {
 		if (*s=='\\') {
 			s++;
+			if (s >= end) {
+				*t++ = '\\';
+				break;
+			}
 
 			switch(*s) {
 				case 'n':
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.