Bug #12314 Updated: include_path does not work

From: Date: Mon, 23 Jul 2001 12:40:25 +0000
Subject: Bug #12314 Updated: include_path does not work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60743@lists.php.net to get a copy of this message
ID: 12314
User updated by: tarique@sanisoft.com
Reported By: tarique@sanisoft.com
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
Old PHP Version: 4.0.6
PHP Version: 4.0.6 
New Comment:

Hmm... looks like very rarely do people really mean what they say in bug reports ;-)

OK! here goes 
----------------------
Fatal error: Failed opening required 'countrylist2.inc'
(include_path='./;./inc/') in c:\program files\apache
group\apache\htdocs\bobp\latest\propertyadd.php3 on line 52
----------------------

I have also tried the following variants

include_path=".\;.\inc\"
include_path=".;.\inc\"
include_path="."

No settings works for anything between Version 4.0.3 to 4.0.6 However the same is working on a live
site running Ver4.0.2

and I dont know where to get Win binaries of 4.0.2 from .... ... 

Cheers



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

[2001-07-23 07:49:30] cynic@php.net

well, I use include_path on NT 4 and NT 5 without problems. since you did not do what the Dos &
Donts page tells you to do (include related php.ini settings in the report), I can only guess that
you forgot to put the value in quotes.

Anyway, could you try this?

php.ini:
include_path = "./;./inc/"

somewhere/test.php:
<? include 'include.inc' ?>

somewhere/inc/include.inc:
<? echo __FILE__ ?>

and load somewhere/test.php. If it gives you any error, paste it here, please.

Thanks!

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

[2001-07-23 07:12:07] tarique@sanisoft.com

without being cynical and with all due respect - yes I have
read the do's and dont's of bug reporting

I also know that the similar bug has been reported for Win2K
and like I said - whatever the include_path setting it does
not work

for all practical purposes the setting in the php.ini is

include_path =

It would be nice if someone could let me know where to find
the Win binaries of PHP4.0.2 that is the latest confirmed
(of course by me) version which does not have this problem.

Also - under  Linux V 4.0.6 works fine

Tarique
	


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

[2001-07-23 06:30:02] cynic@php.net

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here
from your php.ini.)

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

[2001-07-23 05:48:57] tarique@sanisoft.com

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the
current directory

Cheers
Tarique

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



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



Thread (9 messages)

« previous php.dev (#60743) next »