Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - php-pear

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: php-pear 1:1.10.1-1

Git Clone URL: https://aur-dev.archlinux.org/php-pear.git (read-only)
Package Base: php-pear
Description: PHP Extension and Application Repository
Upstream URL: http://pear.php.net/
Licenses: PHP
Submitter: Pierre
Maintainer: Pierre
Last Packager: Pierre
Votes: 19
Popularity: 0.785454
First Submitted: 2016-01-03 12:32
Last Updated: 2016-01-03 12:42

Latest Comments

PreparationH67 commented on 2016-04-29 18:48

The PKGBUILD as written isn't installing correctly to the pkgdir and is silently failing to install to the actual root FS in the package function. The following changes allowed the package to build successfully.

INSTALL_ROOT=$pkgdir/ \
php -n ${srcdir}/install-pear-nozlib.phar \
-d usr/share/pear \
-b usr/bin

rm -rf ${pkgdir}/.{channels,depdb,depdblock,filemap,lock,registry}

chetwisniewski commented on 2016-04-26 22:20

I had to do:

sudo touch /usr/share/pear/.lock to get it to install.

mitchhentges commented on 2016-03-29 08:08

I had to follow http://stackoverflow.com/a/10253935/5226004 to get this working with `phing`. Other packages probably don't work as well, but `phing` is the only php tool I know of through PEAR (so far ;).

Perhaps this should add a file `pear.ini` to `/etc/php/conf.d/` with the following configuration:

```
include_path = ".:/usr/share/pear"
```

That fixed it for me.

Enverex commented on 2016-01-07 22:51

Yeah, this doesn't appear to work at all right now. It thinks it has installed but hasn't.

tarasis commented on 2016-01-07 15:17

Trying to upgrade to this version and getting this on the console:

==> Starting package()...

Notice: Undefined variable: metadata_dir in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/index.php on line 255

Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/PEAR/Registry.php on line 834
[PEAR] Archive_Tar: Unknown channel "pear.php.net"
[PEAR] Archive_Tar: Parsing of package.xml from file "/tmp/pear/temp/pearzaf3MA/package.xml" failed

Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/PEAR/Registry.php on line 834
[PEAR] Console_Getopt: Unknown channel "pear.php.net"
[PEAR] Console_Getopt: Parsing of package.xml from file "/tmp/pear/temp/pearp8VKcv/package.xml" failed

Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/PEAR/Registry.php on line 834
[PEAR] Structures_Graph: Unknown channel "pear.php.net"
[PEAR] Structures_Graph: Parsing of package.xml from file "/tmp/pear/temp/pearPQ12Dp/package.xml" failed

Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/PEAR/Registry.php on line 834
[PEAR] XML_Util: Unknown channel "pear.php.net"
[PEAR] XML_Util: Parsing of package.xml from file "/tmp/pear/temp/pearR0X76j/package.xml" failed

Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in phar:///tmp/yaourt-tmp-rob/aur-php-pear/install-pear-nozlib.phar/PEAR/Registry.php on line 834
[PEAR] PEAR: Unknown channel "pear.php.net"
[PEAR] PEAR: Parsing of package.xml from file "/tmp/pear/temp/pear9AxnEe/package.xml" failed

I have checked in /usr/share/pear and there is no lock file. Is the package safe to install despite that warning?