Bug #17421 Updated: hardcoded include path in Php4ts.dll set to c:\php4\pear
| From: | edink@php.net | Date: | Fri, 24 May 2002 23:56:30 +0000 |
| Subject: | Bug #17421 Updated: hardcoded include path in Php4ts.dll set to c:\php4\pear | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6403@lists.php.net to get a copy of this message | ||
ID: 17421
Updated by: edink@php.net
Reported By: spluess@creative.net
-Status: Open
+Status: Bogus
Bug Type: PEAR related
Operating System: Windows x.x
PHP Version: 4.2.1
New Comment:
The path you mention is just a default that can be overriden in your
%WINDIR%\php.ini. For example:
include_path = ".;c:\php\pear"
Previous Comments:
------------------------------------------------------------------------
[2002-05-24 17:40:19] spluess@creative.net
Hi
installed php 4.2.1 on windows 2000 in the default directory it
proposes, which is C:\php, with apache 1.3.x and also tried apache 2.x
I then tried to code my first pear code and immediately got the error:
Fatal Error: Failed opening required 'DB.php'
(include_path='.;c:\php4\pear') in .....
I also looked at the output of php_info and sure enough the include
path is .;c:\php4\pear
So I started a search for who/what was setting that include path as
setting the include path in php.ini didn't change the result.
After doing a search on all the files in the php distribution I found
that it is hardcoded in the dynaminc library 'PHP4TS.DLL' as
".;c:\php4\pear"
Now after I renamed the directory to php4 and changed my apache conf
files it worked.
But I also saw that various files (conf or utilities like pear.bat)
have the default set to c:\php and the PHP manual also refers to c:\php
as the default.
Wonder if it wouldn't be better not to have such a path hardcoded and
have it added to php.ini or something similar.
Thanks
Serge
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17421&edit=1