…by mallocing twice.
…of old times. -- Kamesh
… into a single macro, at Andi's request.
TSRM_API void *tsrm_new_interpreter_context(void); TSRM_API void *tsrm_set_interpreter_context(void *new_ctx); TSRM_API void tsrm_free_interpreter_context(void *context); These can be used, with a suitable SAPI, to host multiple interpreters on the same thread.
when creating new threads.
…own makes modules registering TSRM ids to crash, if they have dtors, since the module is unloaded before tsrm_shutdown is called. Can be re-enabled after tsrm_free_id is implemented.
…OS's but allows us to build PHP with threading support and therefore we can build as an Apache 2 module. The locking is currently done using benaphores but this may be reviewed.