cvs: php-src /pear/PEAR Installer.php
| From: | Tomas V.V.Cox | Date: | Sun, 05 Oct 2003 19:10:58 +0000 |
| Subject: | cvs: php-src /pear/PEAR Installer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13404@lists.php.net to get a copy of this message | ||
cox Sun Oct 5 15:10:58 2003 EDT
Modified files:
/php-src/pear/PEAR Installer.php
Log:
use realpath instead of chdir
(Roman Neuhauser <neuhauser@bellavista.cz>)
Index: php-src/pear/PEAR/Installer.php
diff -u php-src/pear/PEAR/Installer.php:1.134 php-src/pear/PEAR/Installer.php:1.135
--- php-src/pear/PEAR/Installer.php:1.134 Sun Oct 5 12:42:18 2003
+++ php-src/pear/PEAR/Installer.php Sun Oct 5 15:10:56 2003
@@ -18,7 +18,7 @@
// | Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Installer.php,v 1.134 2003/10/05 16:42:18 mj Exp $
+// $Id: Installer.php,v 1.135 2003/10/05 19:10:56 cox Exp $
require_once 'PEAR/Common.php';
require_once 'PEAR/Registry.php';
@@ -957,11 +957,7 @@
// {{{ Decompress pack in tmp dir -------------------------------------
// To allow relative package file names
- $oldcwd = getcwd();
- if (@chdir(dirname($pkgfile))) {
- $pkgfile = getcwd() . DIRECTORY_SEPARATOR . basename($pkgfile);
- chdir($oldcwd);
- }
+ $pkgfile = realpath($pkgfile);
if (PEAR::isError($tmpdir = System::mktemp('-d'))) {
return $tmpdir;