#24114 [Com]: include_path option
| From: | joe at hitman dot co dot uk | Date: | Wed, 27 Aug 2003 15:53:05 +0000 |
| Subject: | #24114 [Com]: include_path option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46765@lists.php.net to get a copy of this message | ||
ID: 24114
Comment by: joe at hitman dot co dot uk
Reported By: stefano dot cecconi at staff dot aruba dot it
Status: Bogus
Bug Type: PHP options/info functions
Operating System: windows 2000
PHP Version: 4.3.2
New Comment:
I am having a similar include problem on Win XP. I used to use:
include_path = ".;\apache\htdocs"
(which relates to the dir c:\apache\htdocs)
Now it won't work with any combination, Not even
include_path = ".;c:\apache\htdocs" !!!
What do I do?
Previous Comments:
------------------------------------------------------------------------
[2003-06-10 11:38:10] sniper@php.net
This was already 'broken' (actually it was another bug that was fixed)
in PHP 4.3.0. Current behaviour is the correct and documented one.
There is no reason to break it again.
------------------------------------------------------------------------
[2003-06-10 10:35:09] stefano dot cecconi at staff dot aruba dot it
Php 4.2.3 works in a different way.
Even with the / it works.
A lot of free php scripts are written with this notation.
Now they don't work anymore.
Try to think to 200.000 domain in hosting (we are the web hosting
company) where all people working with php and includes have to change
their scripts.
It's not so easy, right?
------------------------------------------------------------------------
[2003-06-10 09:44:09] derick@php.net
Your version should never have worked... it's not a bug at all that you
need to strip that / (it will make PHP to open
c:/call_php/counter.php)...
------------------------------------------------------------------------
[2003-06-10 09:09:41] stefano dot cecconi at staff dot aruba dot it
This is my include_path option value :
include_path = ".;c:\php\includes"
Before 4.3.2 everything worked using this path in a script :
include "/call_php/counter.php"
With 4.3.2 is mandatory to remove the first / so it works only with
this path :
include "call_php/counter.php"
or
include "./call_php/counter.php"
I can't understand this change and it's creating a lot of problems for
our web hosting service, simply because there are thousands of scripts
based on the old way to use relative paths.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24114&edit=1