Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73924 invoked by uid 1010); 5 Sep 2006 11:54:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73909 invoked from network); 5 Sep 2006 11:54:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2006 11:54:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=edink@emini.dk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=edink@emini.dk; sender-id=pass Received-SPF: pass (pb1.pair.com: domain emini.dk designates 192.38.9.232 as permitted sender) X-PHP-List-Original-Sender: edink@emini.dk X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from [192.38.9.232] ([192.38.9.232:8393] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/3D-53496-6B06DF44 for ; Tue, 05 Sep 2006 07:34:16 -0400 Received: by gw2.emini.dk (Postfix, from userid 504) id 70273C401F; Tue, 5 Sep 2006 13:34:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on gw2.emini.dk X-Spam-Detected: no X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Level: Received: from [10.0.0.18] (palestine.intra.emini.dk [10.0.0.18]) by gw2.emini.dk (Postfix) with ESMTP id 493FBC401C for ; Tue, 5 Sep 2006 13:34:11 +0200 (CEST) Message-ID: <44FD60B3.70101@emini.dk> Date: Tue, 05 Sep 2006 12:34:11 +0100 Organization: Emini A/S User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: PHP internals X-Enigmail-Version: 0.94.1.0 OpenPGP: id=157D0FA8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Fixing php.ini search path for cli From: edink@emini.dk (Edin Kadribasic) Hi, Just over a year ago sniper committed a patch that breaks php.ini search path for CLI in order to align the behavior with the manual. You can see his commit message on http://cvs.php.net/viewvc.cgi/php-src/main/php_ini.c?view=log (revision 1.134). I regret that this has just come to my attention (whole 5.1.x series has been released in the meanwhile), but this behavior is wrong and it needs fixing before 5.2.0 is out. The problem is that CLI would look up in the CWD for php.ini which is very bad for people writing PHP command line scripts using Unix shebang convention: #!/usr/bin/php