Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108834 - Set include_path in php-5.0.5-r1 is not correct
Summary: Set include_path in php-5.0.5-r1 is not correct
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 01:18 UTC by Joachim Schlöffel
Modified: 2005-10-11 07:14 UTC (History)
0 users

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 Joachim Schlöffel 2005-10-11 01:18:27 UTC
When installing php-5.0.5-r1 the include_path is set to ".:/usr/share/php:/usr/
share/php5".
The right term would be ".:/usr/share/php5:/usr/share/php", because php needs to 
look in /usr/share/php5 first.

Reproducible: Always
Steps to Reproduce:
Comment 1 Joachim Schlöffel 2005-10-11 01:20:33 UTC
include_path = ".:/usr/share/php:/usr/share/php5"
;
; Windows: "\path1;\path2"
include_path = ".:/usr/share/php:/usr/share/php5"

Another fault is that the path is set twice.
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2005-10-11 03:34:45 UTC
Hmmm I don't really get the bug here?
Setting it twice does not really cause breakage, though I'll fix that this evening.
And for having it search before in php and then php5 or the contrary, I see no
bug in this, since our new packages are separated and you can actually never
have a duplicate, if you use correctly the new generation of packages, though
I'll also fix this so it reads first php5, then php, it does seem logical, ok,
but why exactly do you consider it a bug? Imho an enhancement.
Best regards, CHTEKK.
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2005-10-11 07:10:31 UTC
Ok, fixed in the PHP Overlay [1].
It now defines include_path only one time and it defines it as
.:/usr/share/phpX:/usr/share/php, where X is the PHP version (4 for 4.x, 5 for 5.x).
Best regards, CHTEKK.

[1] http://svn.gnqs.org/projects/gentoo-php-overlay/
Comment 4 Sebastian Bergmann (RETIRED) gentoo-dev 2005-10-11 07:14:08 UTC
Closing requested by Luca Longinotti.