[PATCH] Possible parse error...

php.internals

Matt W

19 years ago
Hi, Probably not much chance of this happening, but while looking through HEAD's lexer/parser code (which word is correct? :-)), I noticed that there's no rule to match a backslash followed by a \n newline inside single quotes, resulting in "Unexpected character in input ..." The ST_SINGLE_QUOTE state used to match this (as in 5.2), but was removed in version 1.132 of zend_language_scanner.l. Untested, but I think the attached patch should take care of it. Matt