Closed cmb69 closed 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 ...
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.
For now we hard-code the list of extensions which are supposed to work in thread-safe mode only.