cvs: php4 / configuration-parser.y
| From: | Hartmut Holzgraefe | Date: | Wed, 07 Jun 2000 05:47:25 +0000 |
| Subject: | cvs: php4 / configuration-parser.y | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-66@lists.php.net to get a copy of this message | ||
hholzgra Tue Jun 6 22:47:25 2000 EDT
Modified files:
/php4 configuration-parser.y
Log:
cyscape's "current" browscap.ini file doesn't terminate the last line
in the file with a newline character
this resulted in a parse error
Index: php4/configuration-parser.y
diff -u php4/configuration-parser.y:1.46 php4/configuration-parser.y:1.47
--- php4/configuration-parser.y:1.46 Tue May 23 16:13:00 2000
+++ php4/configuration-parser.y Tue Jun 6 22:47:24 2000
@@ -19,7 +19,7 @@
-/* $Id: configuration-parser.y,v 1.46 2000/05/23 23:13:00 hholzgra Exp $ */
+/* $Id: configuration-parser.y,v 1.47 2000/06/07 05:47:24 hholzgra Exp $ */
#define DEBUG_CFG_PARSER 0
#include "php.h"
@@ -548,6 +548,7 @@
| CFG_TRUE { $$ = $1; }
| CFG_FALSE { $$ = $1; }
| '\n' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type =
IS_STRING; }
+ | '\0' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type =
IS_STRING; }
;
expr: