Re: [PHP-DEV] Fork() in php?

2001-06-18 Thread Jason Greene
PROTECTED]> Sent: Monday, June 18, 2001 5:53 PM Subject: Re: [PHP-DEV] Fork() in php? > Hi! > > could you please send me those "fork test functions" ? I've written a simple > NNTP-Server and the only thing missing is a fork-function. > > Many thanks in advance

Re: [PHP-DEV] Fork() in php?

2001-05-22 Thread Manuel Lemos
Hello, Zeev Suraski wrote: > > At 01:30 22/5/2001, Stig Sæther Bakken wrote: > >IMHO this type of functionality should only be available in a > >dedicated SAPI module, at least now. There are a lot of worms waiting > >to come out of this can, so put the can in a bucket first. :-) > > Very nic

Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Stig Sæther Bakken
["Richard Heyes" <[EMAIL PROTECTED]>] > > There are no plans for adding MT to PHP itself, but you do have "a > > poor man's cooperative multi-threading" through ticks. > > Are these documented anywhere? Uhm, it seems not. Me fix. - Stig -- Stig Sæther Bakken <[EMAIL PROTECTED]> Fast Sea

RE: [PHP-DEV] Fork() in php?

2001-05-21 Thread Richard Heyes
> There are no plans for adding MT to PHP itself, but you do have "a > poor man's cooperative multi-threading" through ticks. Are these documented anywhere? Thanks. -- Richard Heyes 'Live your life as if you're going to die tomorrow. Learn as if you're going to live forever.' -- PHP Developm

Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Zeev Suraski
At 01:30 22/5/2001, Stig Sæther Bakken wrote: >IMHO this type of functionality should only be available in a >dedicated SAPI module, at least now. There are a lot of worms waiting >to come out of this can, so put the can in a bucket first. :-) Very nicely put! :) Zeev -- PHP Development Maili

Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Stig Sæther Bakken
["Jason Greene" <[EMAIL PROTECTED]>] > I was thinking about MT in php, but the platform differences would > be a nightmare. We could abstract it like perl does, though even > their implementation has problems. > > I would like to start with process control features (fork(), > signals, waitpid()

Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Jason Greene
ot; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 21, 2001 4:33 AM Subject: Re: [PHP-DEV] Fork() in php? At 16:00 21/5/2001, Stig Sæther Bakken wrote: >There are no plans for adding MT to PHP itself, but you do have "a >poor man's cooperative multi-threading&

Re: [PHP-DEV] Fork() in php?

2001-05-21 Thread Zeev Suraski
At 16:00 21/5/2001, Stig Sæther Bakken wrote: >There are no plans for adding MT to PHP itself, but you do have "a >poor man's cooperative multi-threading" through ticks. So now we have >a poor man's objects and a poor man's multitasking. What does that >say about us? :-) That we have a filthy r

Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Stig Sæther Bakken
["Manuel Lemos" <[EMAIL PROTECTED]>] > Hello Zeev, > > On 12-May-01 14:14:10, you wrote: > > >At 04:05 12/5/2001, Wez Furlong wrote: > >>I know that there might be some bad interactions with apache if you fork, > >>but if you allow PHP to spot that it forked and call _exit() instead of > >>retur

Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos
Hello Zeev, On 12-May-01 14:14:10, you wrote: >At 04:05 12/5/2001, Wez Furlong wrote: >>I know that there might be some bad interactions with apache if you fork, >>but if you allow PHP to spot that it forked and call _exit() instead of >>returning into the SAPI, you should be OK? >Not really, t

Re: [PHP-DEV] Fork() in php?

2001-05-12 Thread Zeev Suraski
At 04:05 12/5/2001, Wez Furlong wrote: >I know that there might be some bad interactions with apache if you fork, >but if you allow PHP to spot that it forked and call _exit() instead of >returning into the SAPI, you should be OK? Not really, the parent has to somehow call wait() on the child, ot

Re: [PHP-DEV] Fork() in php?

2001-05-11 Thread Wez Furlong
On 2001-05-11 16:10:00, "Jason Greene" <[EMAIL PROTECTED]> wrote: > What do you guys think about having fork, waitpid, and signal handling available in php? > I wrote a few simple fork test functions, and everything seemed to work fine. > > I am thinking that with sockets, shm, signals, and fork

Re: [PHP-DEV] Fork() in php?

2001-05-11 Thread Jason Greene
From: "spencer 'sporty' portee" <[EMAIL PROTECTED]> To: "Jason Greene" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, May 11, 2001 10:46 AM Subject: Re: [PHP-DEV] Fork() in php? > > Playing devil's advocate here. > > I

Re: [PHP-DEV] Fork() in php?

2001-05-11 Thread spencer 'sporty' portee
Playing devil's advocate here. If php forked, that would mean that apache forked off a child that forked off a child. So if the child at the end of the chain freezes, won't that confuse apache? Threading might be nicer, but the same argumenet might hold. But this is assuming that php is