Re: [PHP-DEV] Thread safety failure in EG(function_table)?

2002-08-26 Thread Michael Sisolak
> I believe that I can reproduce a thread safety failure in init_executor > (as called from the ISAPI sapi). I have a PHP script page that loads > the stylesheet as a PHP page - thus causing two almost simultaneous > page loads. I assume that if in init_executor() directly after > "EG(function_t

[PHP-DEV] Thread safety failure in EG(function_table)?

2002-08-26 Thread Michael Sisolak
I believe that I can reproduce a thread safety failure in init_executor (as called from the ISAPI sapi). I have a PHP script page that loads the stylesheet as a PHP page - thus causing two almost simultaneous page loads. I assume that if in init_executor() directly after "EG(function_table) = CG

Re: [PHP-DEV] Thread safety & global strings

2002-04-12 Thread brad lafountain
--- Marcus Boerger <[EMAIL PROTECTED]> wrote: > Correct me if i am wrong: > We have a macros that garantees thread safety for module globals TSRMG. > But if we use this on strings or structures that is not thread safe because > then the lock only occurs for copying the pointer. But another thread

[PHP-DEV] Thread safety & global strings

2002-04-12 Thread Marcus Boerger
Correct me if i am wrong: We have a macros that garantees thread safety for module globals TSRMG. But if we use this on strings or structures that is not thread safe because then the lock only occurs for copying the pointer. But another thread could change the global value what results in efree of

Re: [PHP-DEV] thread safety for binding issues

2002-03-31 Thread Markus Fischer
Bless You! It still segfaults all over the place (which is another story), but that particular call_user_function() now works, thanks :) and happy easter egg searching ;) - Markus On Sun, Mar 31, 2002 at 01:11:27PM +0300, Zeev Suraski wrote : > At 20:59 30/03/2002, Markus Fische

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Zeev Suraski
At 20:59 30/03/2002, Markus Fischer wrote: > Yes, exactly. Ok, in that case, by default this won't work 'very nicely' with PHP (because it's not very standard), but you should be able to get it to work relatively easily. The problem: All of PHP's resources (globals, memory management, res

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Markus Fischer
Yes, exactly. On Sun, Mar 31, 2002 at 12:48:04AM +0300, Zeev Suraski wrote : > Markus - is that what you're talking about..? > > Zeev > > At 20:37 30/03/2002, Shane Caraveo wrote: > >My understanding from Markus' original email was that the library he is > >using calls back into php on a

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Zeev Suraski
Markus - is that what you're talking about..? Zeev At 20:37 30/03/2002, Shane Caraveo wrote: >My understanding from Markus' original email was that the library he is >using calls back into php on a different thread than that which he called >it with. > >Shane -- PHP Development Mailing List

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Shane Caraveo
My understanding from Markus' original email was that the library he is using calls back into php on a different thread than that which he called it with. Shane Zeev Suraski wrote: > Get MT'd? What do you mean by that? We have no plans to make PHP a > multithreaded application at any time i

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Zeev Suraski
Get MT'd? What do you mean by that? We have no plans to make PHP a multithreaded application at any time in the future, but I'm not exactly sure why it matters to you..? Zeev At 17:16 30/03/2002, Markus Fischer wrote: > Yes, thanks for the answer. > > I think the problem is just that

Re: [PHP-DEV] thread safety for binding issues

2002-03-30 Thread Markus Fischer
Yes, thanks for the answer. I think the problem is just that I mixed up two different things (thread-safety vs. multi-threaded). Err .. any idea if/when PHP itself will get MTed ? :) - Markus On Sat, Mar 30, 2002 at 09:14:56AM +0200, Zeev Suraski wrote : > It should work, i

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Zeev Suraski
It should work, it's using exactly the same thread safe code as the one under Windows... Zeev At 14:14 29/03/2002, Markus Fischer wrote: > Hi, > > how much thread-safe is PHP on linux when compiled with > --enable-experimental-zts ? When I a set up a callback > handler for a 3rd

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Shane Caraveo
Markus Fischer wrote: > On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote : > >>Markus Fischer wrote: >> >>> Hi, >>> >>> how much thread-safe is PHP on linux when compiled with >>> --enable-experimental-zts ? When I a set up a callback >>> handler for a 3rd library which uses

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote : > Markus Fischer wrote: > >Hi, > > > >how much thread-safe is PHP on linux when compiled with > >--enable-experimental-zts ? When I a set up a callback > >handler for a 3rd library which uses threads and in this (C) >

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Shane Caraveo
Markus Fischer wrote: > Hi, > > how much thread-safe is PHP on linux when compiled with > --enable-experimental-zts ? When I a set up a callback > handler for a 3rd library which uses threads and in this (C) > callback I call call_user_function() (to provide custom > callb

[PHP-DEV] thread safety for binding issues

2002-03-29 Thread Markus Fischer
Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd library which uses threads and in this (C) callback I call call_user_function() (to provide custom callbacks) -> bang , I get a segfault. Sh

[PHP-DEV] thread safety

2001-07-28 Thread Phil Driscoll
Zeev If the thread safety stuff you've just committed might fiz the ISAPI problems, and you want some testing doing, please shout out. Cheers -- Phil Driscoll -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA