Skip to content

Mention that zend_set_user_opcode_handler must be called on MINIT phase #96

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

Open
smola opened this issue Jul 30, 2020 · 0 comments
Open

Comments

@smola
Copy link

smola commented Jul 30, 2020

In the Replacing Opcode Handlers, the example calls zend_set_user_opcode_handler from the PHP_MINIT_FUNCTION.

As far as I can tell, this is actually required and calling it during the script execution (e.g. from a PHP function) will not work as expected. If someone can confirm that's the case, I can contribute the PR if needed.

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