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

Can exit php mode in Hack files with </script> #3830

Closed
fredemmott opened this issue Sep 23, 2014 · 0 comments
Closed

Can exit php mode in Hack files with </script> #3830

fredemmott opened this issue Sep 23, 2014 · 0 comments
Assignees

Comments

@fredemmott
Copy link
Contributor

test.php:

<?hh

?>

foo

test2.php:

<?hh

</script>

foo

Running them:

[fredemmott@devbig076 ~] hhvm -v Hack.Lang.LookForTypechecker=0 test.php

Fatal error: syntax error, unexpected T_HH_ERROR, expecting $end in /home/fredemmott/test.php on line 2
[fredemmott@devbig076 ~] hhvm -v Hack.Lang.LookForTypechecker=0 test2.php

foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants