Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7377 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36115 invoked by uid 1010); 28 Jan 2004 18:13:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36091 invoked from network); 28 Jan 2004 18:13:14 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 28 Jan 2004 18:13:14 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.233.18]) by colo.lerdorf.com (8.12.11/8.12.11/Debian-1) with ESMTP id i0SID3TC023118; Wed, 28 Jan 2004 10:13:03 -0800 Date: Wed, 28 Jan 2004 10:12:58 -0800 (PST) To: sascha@schumann.cx cc: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on colo Subject: apache2 sapis and conf handling From: rasmus@lerdorf.com (Rasmus Lerdorf) Sascha, not sure if you followed the discussion regarding the conf settings bleeding from one request to the next in the apache1 sapis. We finally tracked it down to a forgotten zend_ini_deactivate() call in the xbithack handler. There are some reports that this is also a problem under Apache2. You have changed how conf settings are handled in Apache2, but as far as I can see you are relying on PHP to reset them at the end of handling the request. In the couple of cases where after doing an apply_conf() we don't fall into a regular PHP request it looks to me like they can bleed. In the php_handler() function, for example, you do an apply_conf() near the top and then have a bunch of conditions that can cause a return right away. Don't we need a zend_ini_deactivate() before the return, or am I missing a hook call in the Apache2 request handling that will take care of this? -Rasmus