#19549 [NEW]: 4.1.0 -> 4.2.2 "include" operator incompatibility
| From: | dmitry at koteroff dot ru | Date: | Sun, 22 Sep 2002 12:13:36 +0000 |
| Subject: | #19549 [NEW]: 4.1.0 -> 4.2.2 "include" operator incompatibility | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-20039@lists.php.net to get a copy of this message | ||
From: dmitry@koteroff.ru
Operating system: Windows
PHP version: 4.2.2
PHP Bug Type: Unknown/Other Function
Bug description: 4.1.0 -> 4.2.2 "include" operator incompatibility
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 bug report at http://bugs.php.net/?id=19549&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19549&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19549&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19549&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19549&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19549&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19549&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19549&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19549&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19549&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19549&r=globals