Bug 174885 - Incorrect path for include_path in php.ini
Summary: Incorrect path for include_path in php.ini
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-03 12:43 UTC by Reuben Farrelly
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 5.1.1-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-05 09:59:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Reuben Farrelly 2005-12-03 12:43:16 UTC
The new default php.ini in php-5.1.1-2 has this:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"


However my externally downloaded pear modules from pear.php.net are all stored
in /usr/share/pear, and without setting the include_path I get lots of errors
like this:

Warning: include_once(PEAR.php) [function.include-once]: failed to open stream:
No such file or directory in /var/www/html/horde/lib/core.php on line 45

Warning: include_once() [function.include]: Failed opening 'PEAR.php' for
inclusion (include_path='.:/php/includes') in /var/www/html/horde/lib/core.php
on line 45

So two things need to be changed:
- the include directory needs to be unhashed out AND
- the path needs to be fixed to be...  include_path = ".:/usr/share/pear"

Perhaps this can be changed at compile time so that the right path is hardcoded
and compiled as the default.

Comment 1 Joe Orton 2005-12-05 09:59:11 UTC
Thanks for testing these packages out.

I've fixed this so that the default hard-coded include_path setting is
".:/usr/share/pear" again.  Thanks for the report.


Note You need to log in before you can comment on or make changes to this bug.