php / web-pecl

The PECL website
http://pecl.php.net
Other
31 stars 31 forks source link

Don't expect TS only extensions to have NTS builds #82

Closed cmb69 closed 4 years ago

cmb69 commented 4 years ago

For now we hard-code the list of extensions which are supposed to work in thread-safe mode only.

krakjoe commented 4 years ago

I very like, this has always seemed like a strange restriction, it makes things like parallel look less supported than they are ...

cmb69 commented 4 years ago

Maybe the respective phpinternalsbook chapter should be updated as well:

PHP’s multi-processing module is not of your choice, as an extension developer. You will have to support it. You will have to support the fact that your extension could run in a threaded environment, especially under Windows platforms, and you’ll have to program against it.

Anyhow, I've applied this as 9d7578a3396c03e1fc58156f9f7c8753aab24f78.