Bug 477668 - PHP include_path incorrect
Summary: PHP include_path incorrect
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: php
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-22 19:46 UTC by HostMySite.com
Modified: 2009-01-07 11:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-07 11:47:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description HostMySite.com 2008-12-22 19:46:10 UTC
Description of problem:

The default php.ini file comes with the Windows include_path un-commented, which seems to be an obvious oversight.

Version-Release number of selected component (if applicable):

PHP 5.1.6

# cat /etc/issue
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel \r on an \m

How reproducible:

All of our new servers seem to be afflicted by the same issue.

Steps to Reproduce:
1. Install PHP from standard RPMs
2. grep ^include_path /etc/php.ini
3. profit
  
Actual results:

# grep ^include_path /etc/php.ini
include_path = ".;c:\php\includes

Expected results:
# grep ^include_path /etc/php.ini
include_path = ".:/php/includes"

Comment 1 Joe Orton 2009-01-02 10:42:27 UTC
Thanks for the report.  With the default php.ini you should get output as follows:

[root@dhcp-0-199 ~]# grep include_path /etc/php.ini 
; (directory must also be in include_path or full path must
;include_path = ".:/php/includes"
;include_path = ".;c:\php\includes"

Please post the output of:

# rpm -q php
# rpm -V php

from this system.

Comment 2 HostMySite.com 2009-01-03 01:18:14 UTC
[root@serve r~]# grep include_path /etc/php.ini
; (directory must also be in include_path or full path must
include_path = ".:/php/includes"
;include_path = ".;c:\php\includes"


[root@server ~]# rpm -q php
php-5.1.6-20.el5_2.1


[root@server ~]# rpm -V php
S.5....T c /etc/httpd/conf.d/php.conf

Comment 3 Joe Orton 2009-01-05 09:47:13 UTC
Ah, actually, the correct rpm -V command to run should be:

rpm -V php-common

it looks pretty clear /etc/php.ini is modified from the default on this box, in any case.

Comment 4 HostMySite.com 2009-01-06 15:43:30 UTC
Just checked a fresh server:

[root@ninja ~]# grep include_path /etc/php.ini
; (directory must also be in include_path or full path must
;include_path = ".:/php/includes"
;include_path = ".;c:\php\includes"
[root@ninja ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel \r on an \m

Must be our deploys that are causing the problem.

This report can be closed.

Comment 5 Joe Orton 2009-01-07 11:47:11 UTC
Thanks for reporting back!


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