#19549 [Bgs]: 4.1.0 -> 4.2.2 "include" operator incompatibility
| From: | dmitry at koteroff dot ru | Date: | Wed, 25 Sep 2002 17:18:16 +0000 |
| Subject: | #19549 [Bgs]: 4.1.0 -> 4.2.2 "include" operator incompatibility | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20343@lists.php.net to get a copy of this message | ||
ID: 19549
User updated by: dmitry@koteroff.ru
Reported By: dmitry@koteroff.ru
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows
-PHP Version: 4.2.2
+PHP Version: 4.2.3
New Comment:
Unfortunately, new version (4.2.3) has THE SAME bug:
Z:\!distrib\php-4.2.3-Win32>php.exe
<?
include "/test.php";
?>
^Z
Warning: Failed opening '/test.php' for inclusion
(include_path='.;c:\php4\pear') in - on line 2
If I use "include 'z:/test.php'", it works. Help!
Previous Comments:
------------------------------------------------------------------------
[2002-09-22 20:29:06] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2002-09-22 07:13:36] dmitry@koteroff.ru
PHP v4.2.0+ (Windows):
include "/home/some/site.php";
- DOES NOT work (try to believe)! We have to use instead:
include "z:/home/some/site.php"; # bad... Bad?.. BAD!!!
Previous PHP v4.1.0:
include "/home/some/site.php";
- works correct.
I think that since 4.2.0 pathes like "/some/where" does not treated as
absolute. For example, if we add "z:" to "include_path", include
"/home/some/site.php" become workable - it is only the prove.
It is VERY loathsome bug, because it makes Windows scripts incompatible
with Unix and with previous PHP versions.
P.S.
DocumentRoot "/home/site/www"
...
GET http://site/test.php - DOES NOT work too. It seems to me
mod_php
uses the same "include" function while starting the script.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19549&edit=1