Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79067 invoked from network); 5 Aug 2003 21:28:40 -0000 Received: from unknown (HELO ns1.proventum.dk) (195.216.216.2) by pb1.pair.com with SMTP; 5 Aug 2003 21:28:40 -0000 Received: from uros.krug.dk (port264.ds1-amb.adsl.cybercity.dk [217.157.162.17]) by ns1.proventum.dk (Postfix) with ESMTP id CD5C656DDB; Tue, 5 Aug 2003 23:28:38 +0200 (CEST) Received: from master (master [10.0.0.5]) by uros.krug.dk (Postfix) with ESMTP id 845F8150230; Tue, 5 Aug 2003 23:28:57 +0200 (CEST) Message-ID: <002d01c35b98$9d15e400$0500000a@master> To: "Marcus BXrger" , "Vesselin Atanasov" Cc: "PHP-DEV" References: <446691711.20030805230038@post.rwth-aachen.de> Date: Tue, 5 Aug 2003 23:29:06 +0200 Organization: Proventum Solutions ApS MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MailScanner-Information: Please contact postmaster@krug.dk for information X-MailScanner: Found to be clean Subject: Re: [PHP-DEV] Patch for command-line version of PHP From: edink@proventum.net ("Edin Kadribasic") > Hello Vesselin, > > Tuesday, August 5, 2003, 10:47:53 PM, you wrote: > > VA> Hello. > VA> Here is a patch for the command-line version of PHP which makes it chdir() > VA> to the > VA> script directory just like the web version of PHP does. It also implements > VA> the -C > VA> option which has been a NOOP up to now. > > > See README file of sapi/cli. This won't be changed. Maybe a patch that does > the other way round is ok -> a patch that adds a switch to chdir to the > script. No need for that. CLI was specifically designed not to chdir to scripts directory. If you want that one liner would solve it for you: chdir(dirname(__FILE__)); Edin