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

What is the filename used for? #28

Closed
jesseschalken opened this issue May 27, 2016 · 1 comment
Closed

What is the filename used for? #28

jesseschalken opened this issue May 27, 2016 · 1 comment

Comments

@jesseschalken
Copy link

ast\parse_code() accepts an optional $filename parameter but the readme doesn't say what it's for. I tried for follow the code and ended up in zend_set_compiled_filename() which talks about CG(compiled_filename) and CG(filenames_table) but couldn't get much further.

Does the filename affect the output of ast\parse_code() in any way? Is it just used in case of error, perhaps?

@nikic
Copy link
Owner

nikic commented May 27, 2016

At least right now it's used only for errors. We don't resolve __FILE__ with it, or similar.

@nikic nikic closed this as completed Jun 8, 2016
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

2 participants