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

[HackC] some keywords are case sensitive #8194

Closed
fredemmott opened this issue May 10, 2018 · 1 comment
Closed

[HackC] some keywords are case sensitive #8194

fredemmott opened this issue May 10, 2018 · 1 comment

Comments

@fredemmott
Copy link
Contributor

fredemmott commented May 10, 2018

Reported by fwaggle on Freenode IRC

HHVM Version

3.26.0

Operating System and Version

MacOS High Sierra

Standalone code, or other way to reproduce the problem

<?php

Function hello() {
echo 'hi';
}

hello();

Expected result

hi (this is the output if you replace Function with function, or if you disable hackc)

Actual result

$ hhvm test.php

Fatal error: Uncaught Error: A semicolon (';') is expected here. in /private/tmp/test.php:3
Stack trace:
#0 {main}
@fredemmott
Copy link
Contributor Author

We have tests for these in hphp/test/slow/parser/keyword_case/ but they're all skipping if __COMPILER_FRONTEND__ === 'hackc'

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

1 participant