Re: [PHP-DEV] Threaded PHP scripts

2002-05-20 Thread Wez Furlong
Hi Topi, I've recently been dealing with some threading issues with PHP/ZE. PHP keeps state in thread-local variables which are a implemented as a globally visible table, indexed by a thread identifier. All thread-safe PHP and Zend API functions pass around a pointer to the thread local storage

[PHP-DEV] Threaded PHP scripts

2002-05-19 Thread Topi Maenpaa
Hi, I've just started implementing a pthread extension to the PHP language. Things just aren't as simple as I expected. I have no problems in creating threads, mutexes and the like. But it seems that zend_execute and companion functions use some global variables (executor globals, accessed via EG