Re: browscap and nesting level too deep (bug #25916)
| From: | Moriyoshi Koizumi | Date: | Wed, 03 Dec 2003 17:15:31 +0000 |
| Subject: | Re: browscap and nesting level too deep (bug #25916) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6124@lists.php.net to get a copy of this message | ||
On 2003/12/04, at 2:06, Uwe Schindler wrote:
This evening I will try to put a mutex at the beginning of get_browser to prevent more threads running at the same time there. But as I see this, this zend_hash_apply function is used very often could there be other effects if a global variable is a hashtable? Only one question: Is there a special PHP way to use mutexes? I am not familar in Zend programming (I do only SAPI...)Did you take a look at zend_ts_hash (only in php5) and tsrm_mutex_*() ? I'm not quite sure if the facility is enough tested and really thread-safe though. Moriyoshi