ID:               19650
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      4.2.3
 New Comment:

Of course, not OK (-;

File c:\t.php:
<?php include "/test.php" ?>

File c:\test.php:
<?php echo "!" ?>

c:\php> php.exe -q < c:\t.php
<br />
<b>Warning</b>:  Failed opening '/test.php' for inclusion
(include_path='.;c:\php4\pear') in <b>-</b> on line <b>2</b><br />

c:\php> php.exe -q c:\t.php
!

Strange, isn't it?..

Good "/test.php", or not good, when I write 
  DocumentRoot /home/localhost/www
in httpd.conf, and then 
  GET /phpinfo.php HTTP/1.1
Apache calls /home/localhost/www/phpinfo.php, but not
./home/localhost/www (-; Well, 4.2.3 processes it correctly (and we may
close this bug report), but...

I meant that PHP 4.2.3 still have something wrong in its code, because
absolute-slashed pathes do not work sometimes (like in "< script",
maybe somewhere else?). Here, in Russia, we saying in such cases: "Heh,
something's wrong in Danish kingdom". (-; Today I tried to debug it,
but have not found a bug place. Maybe next time.

Good luck.


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

[2002-10-05 16:07:37] [EMAIL PROTECTED]

<?include "/test.php"?> is not good

this is better:
<?php
include ("./test.php");
?>

ok?

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

[2002-10-05 15:35:28] [EMAIL PROTECTED]

New information about this bug.

1. Since version PHP 4.2.3 bug is "changed":

File /t.php AND ./t.php (identical):
<?include "/test.php"?>

Tests:
a) > php.exe c:\t.php - works
b) > php.exe \t.php - works
c) > php.exe /t.php - works
d) > php.exe
     <?include "/test.php"?>
     ^Z
     - DOES NOT work.

In version 4.1.2...4.2.2 a, b & c are not working.

2. Versions <= 4.1.1 work correctly.

So, I think there is only an error if PHP.exe v4.2.3+ gets program from
STDIN. Previous versions (<4.2.3) do not work with command-line
filename too.

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

[2002-10-01 10:49:52] [EMAIL PROTECTED]

A) same problem b) same submitter -> bogus

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

[2002-10-01 10:42:38] [EMAIL PROTECTED]

Dup not bogus

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

[2002-10-01 10:33:38] [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.


The other report of yours, #19689, has more information
so closing this..


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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19650

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

Reply via email to