Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49496 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22331 invoked from network); 24 Aug 2010 18:04:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2010 18:04:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:60290] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/14-34028-199047C4 for ; Tue, 24 Aug 2010 14:04:02 -0400 Received: by gwb19 with SMTP id 19so3516878gwb.29 for ; Tue, 24 Aug 2010 11:03:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.9.4 with SMTP id 4mr7662842ani.245.1282673036352; Tue, 24 Aug 2010 11:03:56 -0700 (PDT) Received: by 10.100.216.9 with HTTP; Tue, 24 Aug 2010 11:03:56 -0700 (PDT) Date: Tue, 24 Aug 2010 20:03:56 +0200 Message-ID: To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Subject: [PATCH] #52045: FPM tries to open php.ini from the current dir From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) hi, when looking at the bug http://bugs.php.net/52045, I figure out that the CLI sapi need to not check php.ini in the current directory (in main/php_ini.c from line 436 to line 442). I need to change this file to make FPM another exception by not adding cwd in the php.ini search path. When talking with johannes, he wondered "we can make this a flag in sapi_globals_struct. so sapi-related stuff can be done in the sapi without touching main/. This might only be done in trunk.". I attached a patch which do this on the bug report. Do you think it's a good idea and I can commit it into trunk ? Moreover, does the CGI sapi need the same correction ? Thx ++ Jerome