Homec4science

Fix an issue where PHP_EOL_COMMENT tokens were discarded on EOF

Authored by epriestley <git@epriestley.com> on Aug 6 2012, 20:24.

Description

Fix an issue where PHP_EOL_COMMENT tokens were discarded on EOF

Summary:
There was no token production rule from state <PHP_EOL_COMMENT> on <<EOF>>.

NOTE: I didn't bump the xhpast version since this is such a minor edge case that it didn't seem worth the trouble.

Test Plan: Unit test now passes with a clean xhpast build.

Reviewers: nh

Reviewed By: nh

CC: aran

Maniphest Tasks: T1599

Differential Revision: https://secure.phabricator.com/D3154

Details

Committed
epriestley <git@epriestley.com>Aug 6 2012, 20:24
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU29eb6e272258: Don't use stream_socket_shutdown() in socket channel
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUf23bc5eea2f7: Fix an issue where PHP_EOL_COMMENT tokens were discarded on EOF (authored by epriestley <git@epriestley.com>).Aug 6 2012, 20:24