cvs: ZendEngine2(PHP_5_3) / zend_ini_scanner.l

From: Date: Thu, 07 Aug 2008 12:22:00 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_ini_scanner.l
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6998@lists.php.net to get a copy of this message
nlopess Thu Aug 7 12:22:00 2008 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_ini_scanner.l Log: fix crash: yytext can't be modified because it is mmaped(). strndup() will take care of last zero char http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_ini_scanner.l?r1=1.41.2.2.2.2.2.7&r2=1.41.2.2.2.2.2.8&diff_format=u Index: ZendEngine2/zend_ini_scanner.l diff -u ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.7 ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.8 --- ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.7 Mon Apr 7 11:39:14 2008 +++ ZendEngine2/zend_ini_scanner.l Thu Aug 7 12:22:00 2008 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_ini_scanner.l,v 1.41.2.2.2.2.2.7 2008/04/07 11:39:14 scottmac Exp $ */ +/* $Id: zend_ini_scanner.l,v 1.41.2.2.2.2.2.8 2008/08/07 12:22:00 nlopess Exp $ */ #include <errno.h> #include "zend.h" @@ -406,7 +406,6 @@ if (yytext[0] == '"' && yytext[yyleng - 1] == '"') { SCNG(yy_text)++; yyleng = yyleng - 2; - yytext[yyleng] = 0; } RETURN_TOKEN(TC_RAW, yytext, yyleng); }

« previous php.zend-engine.cvs (#6998) next »