Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14229 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10407 invoked by uid 1010); 29 Dec 2004 04:57:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9945 invoked from network); 29 Dec 2004 04:57:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Dec 2004 04:57:36 -0000 X-Host-Fingerprint: 211.9.230.193 mgkyb1.nw.wakwak.com FreeBSD 4.6-4.9 Received: from ([211.9.230.193:2919] helo=mgkyb1.nw.wakwak.com) by pb1.pair.com (ecelerity HEAD (r3992M)) with SMTP id A1/23-00168-93932D14 for ; Tue, 28 Dec 2004 23:57:29 -0500 Received: from vckyb3.nw.wakwak.com (vckyb3.nw.wakwak.com [211.9.231.144]) by mgkyb1.nw.wakwak.com (8.13.2/8.13.2/2004-12-22) with SMTP id iBT4vP9i084972 for ; Wed, 29 Dec 2004 13:57:25 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb3.nw.wakwak.com (Postfix) with ESMTP id 6AEA53FE02 for ; Wed, 29 Dec 2004 13:57:25 +0900 (JST) Received: from [192.168.0.100] (newcycle.as.wakwak.ne.jp [218.225.209.145]) by at.wakwak.com (8.13.2/8.13.2/2004-12-22) with ESMTP/inet id iBT4vPX0096051 for ; Wed, 29 Dec 2004 13:57:25 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-ID: <057D485F-5956-11D9-BD25-000A95CE0C62@at.wakwak.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: internals Mailing List Developers Date: Wed, 29 Dec 2004 13:56:37 +0900 X-Mailer: Apple Mail (2.619) Subject: Module activation order in php_request_startup() From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Hi, Currently activation functions are called in the following order on request startup: 1. zend_activate() 2. sapi_activate() 3. php_hash_environment() 4. zend_activate_modules() Is there any good technical reason behind this order? I don't think it does make much sense because php_hash_environment() can call input handlers before the modules providing those handlers are initialised. It also resulted in a fatal bug in mbstring reported recently in the Japanese user's mailing list; some settings kept in the module globals leak over requests. Regards, Moriyoshi