HomePhabricator

Don't eat whitespace after T_OPEN_TAG

Tags
None
Referenced Files
F764333: xhpast-before.png
Aug 30 2015, 8:50 PM
F764335: xhpast-after.png
Aug 30 2015, 8:50 PM
Subscribers
None

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
xhpast-before.png (848×1 px, 54 KB)
xhpast-after.png (848×1 px, 54 KB)

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Aug 30 2015, 8:50 PM
Reviewer
Blessed Reviewers
Differential Revision
D13890: Don't eat whitespace after T_OPEN_TAG
Parents
rPHUc8a008f7e46c: Make PHP echo tags always available
Branches
Unknown
Tags
Unknown