Re: ts_free_thread() frees only temporary in multiple parallel threads

From: Date: Sun, 12 Dec 2010 15:47:20 +0000
Subject: Re: ts_free_thread() frees only temporary in multiple parallel threads
Groups: php.internals 
Request: Send a blank email to internals+get-51016@lists.php.net to get a copy of this message
(Referring to my posts: #50838 and #50916) Well although I got the feeling no one cares, I finally found a solution to my problem!!! Combining my patch (from post #50916) with the php_embed2 module makes everything working great in multi-threaded usage. The normal php_embed module does not seem to be designed for that. So my final conclusion for the multi-threaded SAPI is the following: - my patch is needed (to avoid false resource allocation) - php_embed2 module is needed (instead of php_embed) - TSRMLS_FETCH() needs to be called at the start of every request - ts_free_thread() should be called at the end of every request But I still would like to get any comment about my patch...

« previous php.internals (#51016) next »