ID:               29085
 Comment by:       php dot netsm at majorsite dot com
 Reported By:      christian at wenz dot org
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Windows
 PHP Version:      5.0.0RC3
 New Comment:

I, too, find this VERY confusing, and I can't seem to get around it.

Running Win2K Server (was to upgrade this year - market stopped
that...) and have had PHP running on 5.0.3 for awhile (in C:\Program
Files\PHP - the 'default' from the install).

Went to upgrade and found latest versions need Win2003 Server or
better, so I had to take 5.2.10, but I cannot get the .ini to read.

Install.txt file says to avoid \program files\ so I deleted that and
went for a 'clean' install to \php\

phpinfo() says I'm looking at loaded .ini from C:\PHP\php.ini I've
tried setting the php.ini include_path = ".;c:\php;c:\php\ext", yet
phpinfo() says include_path is .;C:\php5\pear

The comments on this page were from 2004 - and the 'fix' was that
"people want to run php4 and php5, though, how long has php4 been gone,
and this issue is still relevant 5 years on.....  this IS (IMHO) a BAD
thing and very confusing.

I look forward to some reply as I now have php running again, but none
of my databases run, none of my 'include' files work, etc.

And, please do not tell me to save my .ini file in some other location
- I've tried \winnt\system32, \winnt, c:\ and certainly c:\php - nothing
has worked.  I am almost frustrated enough to try c:\php5 and even
c:\php5\pear, but I am trying to use the install instructions!

I think this php5 error is a bug and should be fixed - even in other
versions of php (for those of us that can't afford the upgrade).


Previous Comments:
------------------------------------------------------------------------

[2005-02-15 01:08:11] tony2...@php.net

This is not a bug, but change request.
Reclassifying.

------------------------------------------------------------------------

[2005-01-05 21:34:30] justin at telepop dot net

This setting just caused me some problems.  Somehow my php.ini had a
bad path in its include_path setting.  Rather than spit out an error, it
assumed that c:\php4\pear was my default include directory, and gave me
little information to figure out why.  Once I fixed the path, my
declared settings took effect and everything worked fine, but it wasn't
a very intuitive leap to see why that include path was showing up.

------------------------------------------------------------------------

[2004-08-06 08:54:57] christian at wenz dot org

sorry, here I completely disagree. Of course it _is_ possible to change
the include_path manually or within the script, however there is a
divergence between the installation section of the manual (where it says
"C:\php") and this built-in behavior of PHP ("C:\php5"). Also, I know of
only very few people who actually use both versions on one machine (only
few now of the possibility to store php.ini in the PHP directory and not
in the Windows directory; furthermore you have to use PHP as CGI). 
This bug appears again and again; I am getting 2-3 reader mails about
this per month; and it is (IMO) just annoying. Therefore, one thing has
to change IMO: either the installation recommends installing PHP into
C:\php5, or the include_path is set to something that includes C:\php.
Of course, the latter is preferable.  So I dare to reopen this one :)

------------------------------------------------------------------------

[2004-08-05 23:33:44] ed...@php.net

Well this is a matter of opinion :) Most people prefer to be able to
run php4 and php5 on the same box right now. This might change in the
future. Anyway setting include_path in php.ini isn't that difficult, is
it :)

------------------------------------------------------------------------

[2004-07-10 13:50:01] christian at wenz dot org

Description:
------------
the default include_path on Windows systems is ".;c:\php5\pear". IMO
that's a bad idea (TM) because most installation tutorials recommend
c:\php and the PEAR installer defaults to that directory, too. 

Looks like a "port" of bug #21609 :-)

Reproduce code:
---------------
call phpinfo(), look at output for include_path

Expected result:
----------------
Directive  Local Value  Master Value
include_path .;C:\php\pear .;C:\php\pear 

Actual result:
--------------
Directive  Local Value  Master Value
include_path .;C:\php5\pear .;C:\php5\pear 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29085&edit=1

Reply via email to