[PHP-DEV] Re: [PHP3] Apache + mod_php3 + mod_frontpage From: Zeev Suraski (bourbon <email protected>)
Date: 05/31/98

If anybody has any insights as to how to solve this, step forward...

>Delivered-To: bourbon-php3 <email protected>
>Mailing-List: contact php3-help <email protected>; run by ezmlm
>Delivered-To: mailing list php3 <email protected>
>Reply-To: bourbon <email protected>
>X-Sender: bourbon <email protected>
>X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
>Date: Sun, 31 May 1998 09:27:56
>To: Rich Derr <rhd <email protected>>
>From: Zeev Suraski <bourbon <email protected>>
>Subject: Re: [PHP3] Apache + mod_php3 + mod_frontpage
>Cc: php3 <email protected>
>
>At 18:17 30/05/98 -0700, Rich Derr wrote:
>>On Sun, 31 May 1998, Zeev Suraski wrote:
>>
>>> Can you try killing php3_request_shutdown_for_exec() (i.e., comment its
>>> content out or erase it) and see if it helps?
>>> What file descriptor number is in question? When you strace/truss the
>>> process, do you see that it gets closed at some point?
>>
>> My research has led me to the same point. My first attempt didn't
>>work; I'm trying to see what I did wrong. It's #5 and yes, strace
>>essentially confirms that it is the loop in request_shutdown_for_exec
>>that's a problem.
>>
>> Oh, dummy rhd commented it out in php3_request_... and not in
>>php3_module_.... Bet it works next time. Compiling now.
>>
>> Can't you FD_SET a global fd_set every time you open or otherwise
>>allocate an fd and then use FD_ISSET in that loop? I don't know, I
>>haven't seriously looked at php internals since about 2.0b10. What is
>>there now just seems a little stupid. (He says, as if he could do
>>better.)
>
>No, not really. In many cases we don't get the file descriptor at all,
>e.g. when we fopen(). Looks like we've got a bit of a problem in our
>hands. The only solution I can of is simply giving up the close() loop on
>the shutdown_for_exec()'s, but that may mean we're passing a very polluted
>image to any fork()/exec()'d process.
>
>Zeev
>--
>Zeev Suraski <zeev <email protected>>
>For a PGP public key, finger bourbon <email protected>
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html
>
>
>

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>