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

PHP target, parse of a 2-line test causes PHP parser to use excessive memory, not terminate #4024

Closed
kaby76 opened this issue Dec 16, 2022 · 1 comment

Comments

@kaby76
Copy link
Contributor

kaby76 commented Dec 16, 2022

  • Grammar: aql
  • Input: for.aql
  • Target: PHP 8.1.12.
  • Driver: You can use "trgen -t PHP" to generate a driver program for your OS. Then, from the command line "php -d memory_limit=4G Test.php -file ../examples/for.aql".
  • Behavior: The parser terminates with out of memory exception. All other examples parse under a second. This is the only example that does not parse, which likely means a significant bug in the runtime.
  • Additional information: #1228 - ArangoDb - grammar and tests grammars-v4#2963 (comment)
@kaby76
Copy link
Contributor Author

kaby76 commented Dec 22, 2022

Closing this here since the bug is documented over in the PHP runtime code here.

@kaby76 kaby76 closed this as completed Dec 22, 2022
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

No branches or pull requests

1 participant