[pkg-php-pear] Bug#822771: php-pear: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on + XML Extension not found

Ivan Sergio Borgonovo ivan.s.b at gmail.com
Wed Apr 27 10:36:45 UTC 2016

Package: php-pear
Version: 1:1.10.1+submodules+notgz-8
Severity: grave
Justification: renders package unusable

I discovered I've the same problem described here:
examining horde log files

A long list of
Invalid argument supplied for foreach() in /usr/share/pear/PEAR/...
ending with

PHP Warning:  require_once(/lib/Application.php): failed to open stream:
No such file or directory in /usr/bin/horde-alarms on line 21
PHP Fatal error:  require_once(): Failed opening required
'/lib/Application.php' (include_path='.:/usr/share/php:') in
/usr/bin/horde-alarms on line 21

This also seems to be related with some pear issue not setting horde_dir

Simply running
pear list-all
or any other pear command end up in the same list of
Invalid argument supplied for foreach() in /usr/share/pear/PEAR/...
ending with
XML Extension not found


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages php-pear depends on:
ii  php-common            1:35
ii  php-xml               1:7.0+35
ii  php5.6-cli [php-cli]  5.6.18+dfsg-11
ii  php7.0-xml [php-xml]  7.0.5-3

php-pear recommends no packages.

php-pear suggests no packages.

-- no debconf information

More information about the pkg-php-pear mailing list