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

ZTS build not supported ... #24

Open
mcarbonneaux opened this issue Aug 23, 2018 · 5 comments
Open

ZTS build not supported ... #24

mcarbonneaux opened this issue Aug 23, 2018 · 5 comments

Comments

@mcarbonneaux
Copy link

when i build the module they throw the error "ZTS build not supported (yet)"...
there a plan to support ?
what they need to do to work ?

@mcarbonneaux
Copy link
Author

mcarbonneaux commented Aug 23, 2018

i've made a 1st pull request on v1.0.0 and v2.0.0 for that....

and remi as done another pull request:

@mokraemer
Copy link

do you have plans to support ZTS builds?
I think it is a very common way to build php.

@dktapps
Copy link

dktapps commented Nov 4, 2023

What are the obstacles to supporting the extension on ZTS? I'd like to be able to use it with PocketMine-MP, which requires threading extensions that require ZTS.

@mcarbonneaux
Copy link
Author

#7 (comment)

from @arnaud-lb in the pull request of remi :

There will be a limitation in ZTS however, as we cannot override zend_execute_fn / zend_execute_internal during script execution without affecting scripts running in other threads. In ZTS mode we will have to override them permanently (in MINIT), and add a is_enabled() check in memprof_zend_execute / memprof_zend_execute_internal.

@dktapps
Copy link

dktapps commented Nov 5, 2023

Might be worth looking into PHP 8.0 Observer API. Not sure if that's thread-local though.

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

3 participants