Bug #17421: hardcoded include path in Php4ts.dll set to c:\php4\pear

From: Date: Fri, 24 May 2002 21:40:20 +0000
Subject: Bug #17421: hardcoded include path in Php4ts.dll set to c:\php4\pear
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6402@lists.php.net to get a copy of this message
From: spluess@creative.net Operating system: Windows x.x PHP version: 4.2.1 PHP Bug Type: PEAR related Bug description: hardcoded include path in Php4ts.dll set to c:\php4\pear 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 bug report at http://bugs.php.net/?id=17421&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17421&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17421&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17421&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17421&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17421&r=support Expected behavior: http://bugs.php.net/fix.php?id=17421&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17421&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17421&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17421&r=globals

« previous php.pear.dev (#6402) next »