php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12314 include_path does not work
Submitted: 2001-07-23 05:48 UTC Modified: 2001-08-20 12:14 UTC
From: tarique at sanisoft dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: WinME
Private report: No CVE-ID: None
 [2001-07-23 05:48 UTC] tarique at sanisoft dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-23 06:30 UTC] 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 07:12 UTC] tarique at sanisoft dot 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 07:49 UTC] 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 08:40 UTC] tarique at sanisoft dot com
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


 [2001-07-24 05:01 UTC] tarique at sanisoft dot com
OK! you can call this bug somewhat of a bummer the problems disappear if I use Win98. I found this when I copied my setup to a different computer.

 [2001-07-27 12:05 UTC] sniper@php.net
Have you tried adding the drive name to the paths? ie.

include_path=".;c:\my\own\includes\;d:\some\other\stuff\"

As this works for me on WinME just fine.

 [2001-08-20 12:14 UTC] sniper@php.net
No feedback, can't reproduce.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC