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

The extension is not thread safe #1

Open
cmb69 opened this issue Oct 14, 2024 · 3 comments
Open

The extension is not thread safe #1

cmb69 opened this issue Oct 14, 2024 · 3 comments

Comments

@cmb69
Copy link
Contributor

cmb69 commented Oct 14, 2024

Since mbuf is a true global variable

static struct membuffer mbuf = { NULL, 0, 0 };

the extension is not suitable for running with Zend Thread-Safety (ZTS) builds of PHP. See https://www.phpinternalsbook.com/php7/extensions_design/globals_management.html#managing-request-globals for some details.

@eklausme
Copy link
Owner

Thanks for comment.

Followed the advice given in above link.

@cmb69
Copy link
Contributor Author

cmb69 commented Oct 21, 2024

Thank you! I found a minor issue (see #6), but otherwise it works. :)

@eklausme
Copy link
Owner

Thanks a lot Christoph for helping out!

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