Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert T_HASHBANG to T_INLINE_HTML for token_get_all #5023

Closed
wants to merge 2 commits into from

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Mar 14, 2015

Fixes #4810 and #4936 by converting T_HASHBANG to T_INLINE_HTML in token_get_all() output.

@facebook-github-bot
Copy link
Contributor

This pull request has been imported into Phabricator, and discussion and review of the diff will take place at https://reviews.facebook.net/D35079

... and leave everything else alone. Modifying the mapping constants
results in T_HASHBANG being registered as the name for T_INLINE_HTML,
which we definitely don't want.

Now the change is localized to the token_get_all function only.
@hhvm-bot hhvm-bot closed this in 3ab5dce Mar 16, 2015
legoktm added a commit to wikimedia/mediawiki-tools-codesniffer that referenced this pull request Jun 19, 2015
…<3.7

token_get_all() in HHVM >=3.5,<3.7 will interpret a hashbang as T_HASHBANG
rather than T_INLINE_HTML like PHP5.

This has been fixed upstream in <facebook/hhvm#5023>,
but we need to support 3.6.0.

Bug: T103119
Change-Id: Iac4745580bae313505af370d6361c800f5587f5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug][3.5.0] T_HASHBANG
2 participants