Versions of PHP prior to 4.3.10, had an include_path of /usr/lib/php. In version 4.3.10, this has changed to /usr/lib/php/php. However, php.ini is not updated when th package is upgraded, thus any includes, such as DB, are not found until include_path is changed.
the last change in php-sapi.eclass (multilib fix) broke PEAR installation, because php itself appends "php" to whatever --libdir is set to: with myconf="${myconf} --libdir=/usr/${libdir}/php" removed: >>> Install php-4.3.10 into /var/tmp/portage/php-4.3.10/image/ category dev-php Installing PHP CLI binary: /var/tmp/portage/php-4.3.10/image//usr/bin/ Installing PHP CLI man page: /var/tmp/portage/php-4.3.10/image//usr/share/man/man1/ Installing PEAR environment: /var/tmp/portage/php-4.3.10/image//usr/lib/php/ with myconf=... line: >>> Install php-4.3.10 into /var/tmp/portage/php-4.3.10/image/ category dev-php Installing PHP CLI binary: /var/tmp/portage/php-4.3.10/image//usr/bin/ Installing PHP CLI man page: /var/tmp/portage/php-4.3.10/image//usr/share/man/man1/ Installing PEAR environment: /var/tmp/portage/php-4.3.10/image//usr/lib/php/php/
Let
Let´s track this in one bug. ;-) *** This bug has been marked as a duplicate of 88763 ***
since when is an older bug with an attached solution to a general php problem a duplicate of a newer bug that is about pear stuff only?
Please read the solution provided in #88763.
Hello, I tried web-cyradm and it will not work until I have installed PEAR-PEAR PEAR-DB. But the main thing was to set in the php.ini: cat /etc/apache2/php.ini | grep php/php include_path = ".:/usr/lib/php/php" Then all work fine even such things like lx-office e.g. Regards Roland
This one has _not_ been fixed. I still had the issue when emerge a few PEAR packages today that ended up in the /usr/lib/php/php directory. The only real fix for this that I found is to remove myconf="${myconf} --libdir=/usr/${libdir}/php" from the php-sapi.eclass file.
Stephane, I re-emerged everything in /usr/lib/php/php (epm -qf /usr/lib/php/php to get the package list) and the problem went away for me.