ID:               19689
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows
 PHP Version:      4CVS-2002-10-01
 New Comment:

OK, if you cannot correct your own program without misleading words
(you said before TWICE that there is no bug, and it is the ONLY thing
disagreeable to me), get it:

php-4.2.3/TSRM/tsrm_virtual_cwd.h, line 56:

- #define IS_ABSOLUTE_PATH(path, len) \
-       (len >= 2 && isalpha(path[0]) && path[1] == ':')

+ #define IS_ABSOLUTE_PATH(path, len) \
+       (len >= 2 && isalpha(path[0]) && path[1] == ':') \
+       || (len >= 1 && IS_SLASH(path[0]))

This section is under #ifdef TSRM_WIN32 block (of course). 

I'm not a specialist in PHP core, so I have spent about an hour to find
bug location. Unfortunately I CANNOT stop on that, because our users
still download PHP from your site. I will be very glad if you correct
this bug in the next version (4.3.0 I suppose?).


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

[2002-10-01 08:06:18] [EMAIL PROTECTED]

Oh, I forgot:

http://www.derickrethans.nl/20020426.php

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

[2002-10-01 08:03:43] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in PHP.

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

[2002-10-01 08:02:52] [EMAIL PROTECTED]

I'm trying to write here THIRD time (maybe previous two threads is
down?). You said before this bug in NOT actual in 4.2.3 and in CVS
snapshot:
  http://snaps.php.net/win32/php4-win32-latest.zip
but code STILL DOES NOT work in 4.2.3 and 4.3.0-dev.

So, PHP v4.2.0 (and later!) on 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.

Again, new version (4.3.0) 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. 
Please help (our clients are very angry!)

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.

P.P.S.
I'm not a nasty man, but I would write here again if you continue
ignore these messages like previous two. Generally speaking, good luck
& thank you for PHP as such.

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


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

Reply via email to