Homec4science

Don't eat whitespace after T_OPEN_TAG

Authored by Joshua Spence <josh@freelancer.com> on Aug 30 2015, 22:49.

Description

Don't eat whitespace after T_OPEN_TAG

Summary: Currently the scanner eats whitespace after <?php but not after <?. This means that <?php tokenises to T_OPEN_TAG (see https://secure.phabricator.com/xhpast/view/853/) whereas <? tokenises to T_OPEN_TAG, T_WHITESPACE (see https://secure.phabricator.com/xhpast/view/854/).

Test Plan:

BeforeAfter
{F764333}{F764335}

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

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

Details

Committed
Joshua Spence <josh@freelancer.com>Aug 30 2015, 22:49
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUc8a008f7e46c: Make PHP echo tags always available
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rPHUdc0626970a6d: Don't eat whitespace after T_OPEN_TAG (authored by Joshua Spence <josh@freelancer.com>).Aug 30 2015, 22:49