Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86685 - PHP 4.3.10 upgrade does not update the include path in php.ini
Summary: PHP 4.3.10 upgrade does not update the include path in php.ini
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 10:23 UTC by Martin Diers
Modified: 2005-05-24 15:54 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Diers 2005-03-25 10:23:45 UTC
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.
Comment 1 Stefan Knoblich (RETIRED) gentoo-dev 2005-04-08 14:29:22 UTC
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/
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-04-15 19:36:06 UTC
Let
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-04-15 19:36:06 UTC
Let´s track this in one bug. ;-)

*** This bug has been marked as a duplicate of 88763 ***
Comment 4 Stefan Knoblich (RETIRED) gentoo-dev 2005-04-16 11:23:20 UTC
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?
Comment 5 Sebastian Bergmann (RETIRED) gentoo-dev 2005-05-10 11:09:03 UTC
Please read the solution provided in #88763.
Comment 6 R. May 2005-05-19 05:34:35 UTC
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
Comment 7 Stephane Schitter 2005-05-20 00:53:14 UTC
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.
Comment 8 Andy Wang 2005-05-24 15:54:36 UTC
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.