summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-06-07 05:47:24 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-06-07 05:47:24 +0000
commit02b0cef4d83a89e46cfa0605f60dc176941f09d7 (patch)
tree79d542ffe541f4ceca7aaeac18f97e6b53970e70
parent61fcaf564a267c27feeabdb3df78a804a91528dd (diff)
downloadphp-git-02b0cef4d83a89e46cfa0605f60dc176941f09d7.tar.gz
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
-rw-r--r--main/configuration-parser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/configuration-parser.y b/main/configuration-parser.y
index a201ce5eb4..852e4dc291 100644
--- a/main/configuration-parser.y
+++ b/main/configuration-parser.y
@@ -548,6 +548,7 @@ string_or_value:
| 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: