【发布时间】:2017-03-01 22:11:01
【问题描述】:
使用 Mac OS X Sierra。
尝试安装 pear,但导致 PEAR/Proxy is not a file in phar 的错误。完全奇怪。有想法吗?
php -d detect_unicode=0 go-pear.phar
1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to /Users/louie/.pearrc...
Initialized registry...
Preparing to install...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.2.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.3.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.2.tar...
PHP Warning: require_once(phar://go-pear.phar/PEAR/Proxy.php): failed to open stream: phar error: "PEAR/Proxy.php" is not a file in phar "go-pear.phar" in phar:///Users/louie/Development/project/go-pear.phar/PEAR/Downloader.php on line 23
Warning: require_once(phar://go-pear.phar/PEAR/Proxy.php): failed to open stream: phar error: "PEAR/Proxy.php" is not a file in phar "go-pear.phar" in phar:///Users/louie/Development/project/go-pear.phar/PEAR/Downloader.php on line 23
【问题讨论】:
-
也可以在 Linux 上重现。
-
PEAR 1.10.3 的问题 - pear.php.net/bugs/bug.php?id=21190
-
Amazon Linux 2018.3 上的相同问题,无论 2019 年 4 月初可用的版本