RE: [PEAR-DEV] PEAR Installer on FreeBSD

From: Date: Tue, 23 Apr 2002 05:10:40 +0000
Subject: RE: [PEAR-DEV] PEAR Installer on FreeBSD
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5730@lists.php.net to get a copy of this message
I meant that getcwd() retuns null string when I executed PHP at command line. <?php echo $_ENV['PWD'] . "\n"; echo getcwd() . "\n"; ?> yeilds /usr/local/lib/php . Thus, I needed to modify the PEAR/Installer.php to make it work. Is it a bug related to getcwd() or am I missing something? Naoki Shima -----Original Message----- From: Jon Parise [mailto:jon@php.net] Sent: Friday, April 19, 2002 11:45 PM To: Naoki Shima Cc: pear-dev@lists.php.net Subject: Re: [PEAR-DEV] PEAR Installer on FreeBSD On Fri, Apr 19, 2002 at 02:47:20PM +0900, Naoki Shima wrote: > I'd had problem using PEAR Installer on my FreeBSD Box(FreeBSD 4.5-RELEASE > on Intel). > I have found out that getcwd() does not work for CGI version of PHP 4.1.2. > It worked on Apache module version of PHP 4.1.2 though. > I have used $_ENV['PWD'] instead of getcwd() and it worked fine. What do you mean by "does not work"? Running this script under FreeBSD: <?php echo $_ENV['PWD'] . "\n"; echo getcwd() . "\n"; ?> yields: /home/jon/work /var/www/work.domain.org Note that /home/jon is a symlink to /var/www/work.domain.org. Perhaps you are expecting them to be the same?

« previous php.pear.dev (#5730) next »