cvs: php4 / NEWS /main configuration-scanner.l

From: Date: Wed, 11 Oct 2000 19:38:17 +0000
Subject: cvs: php4 / NEWS /main configuration-scanner.l
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2004@lists.php.net to get a copy of this message
sasha Wed Oct 11 12:38:17 2000 EDT Modified files: /php4 NEWS /php4/main configuration-scanner.l Log: Fixed a problem in the configuration scanner where two extra NULL bytes were added to each encapsulated string. Index: php4/NEWS diff -u php4/NEWS:1.469 php4/NEWS:1.470 --- php4/NEWS:1.469 Wed Oct 11 11:52:11 2000 +++ php4/NEWS Wed Oct 11 12:38:16 2000 @@ -2,6 +2,8 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 11 Oct 2000, Version 4.0.3 +- Fixed a problem in the configuration parser (two null bytes were added + to each ENCAPSULATED TC_STRING) (alex@zend.com) - Fixed a possible crash in -a interactive mode (Zeev, Zend Engine) - Added mysql_escape_string() (Peter A. Savitch and & Brian Wang) - Fixed many possible crash bugs with improper use of the printf() family of Index: php4/main/configuration-scanner.l diff -u php4/main/configuration-scanner.l:1.13 php4/main/configuration-scanner.l:1.14 --- php4/main/configuration-scanner.l:1.13 Mon Jun 26 11:15:49 2000 +++ php4/main/configuration-scanner.l Wed Oct 11 12:38:16 2000 @@ -113,8 +113,8 @@ /* eat leading " */ yytext++; - cfglval->value.str.val = zend_strndup(yytext,yyleng); - cfglval->value.str.len = yyleng; + cfglval->value.str.val = zend_strndup(yytext, yyleng - 2); + cfglval->value.str.len = yyleng - 2; cfglval->type = IS_STRING; return TC_ENCAPSULATED_STRING; }

« previous php.cvs (#2004) next »