Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46273 invoked from network); 30 May 2003 14:38:36 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 30 May 2003 14:38:36 -0000 Received: (qmail 15907 invoked from network); 30 May 2003 14:38:29 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 30 May 2003 14:38:29 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030530173447.052b8dc0@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 30 May 2003 17:38:17 +0300 To: Wez Furlong Cc: Brian Moon ,internals@lists.php.net In-Reply-To: References: <01c301c3260b$512bda30$0100a8c0@doughboy> <01c301c3260b$512bda30$0100a8c0@doughboy> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] exec in CLI vs. mod_php From: zeev@zend.com (Zeev Suraski) At 22:44 29/05/2003, Wez Furlong wrote: >Under apache, you inherit all of the apache sockets when the libc forks >and execs your script. > >This causes some problems (there are one or two bug reports about this >in the bug db) with processes waiting around on the sockets. > >It looks like there was some code in the apache SAPI to avoid this >problem, but it is currently commented out with an explanation that it >is "problematic". > >I've asked about this problem a few times, but no one seems to notice my >questions or have time to reply. > >So, we know of the problem, we know roughly how to fix it, but no one >can explain why we can't fix it :) IIRC, it has to do with resources. For instance, if you close() a socket that's used by a MySQL link, it ended up breaking the link in the parent process. Did you try looking at the history to see whether there was any info in the commit message? Zeev