#19650 [Com]: 4.2.3 (!) "include" operator mistake

From: Date: Sat, 05 Oct 2002 20:35:28 +0000
Subject: #19650 [Com]: 4.2.3 (!) "include" operator mistake
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21589@lists.php.net to get a copy of this message
 ID:               19650
 Comment by:       dmitry@koteroff.ru
 Reported By:      dmitry@koteroff.ru
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      4.2.3
 New Comment:

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.


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

[2002-10-01 10:49:52] sniper@php.net

A) same problem b) same submitter -> bogus

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

[2002-10-01 10:42:38] jmoore@php.net

Dup not bogus

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

[2002-10-01 10:33:38] sniper@php.net

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..


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

[2002-09-30 06:28:36] dmitry@koteroff.ru

Version
http://snaps.php.net/win32/php4-win32-latest.zip

STILL DOES NOT WORK (z:/test.php contains "echo '!'"):

Z:\!distrib\aaa>php.exe
<?
include "z:/test.php";
?>
^Z
!

Z:\!distrib\aaa>php.exe
<?
include "/test.php";
?>
^Z

Warning: main(/test.php) [http://www.php.net/function.main]: failed to
create stream:
No such file or directory in Z:\!distrib\aaa\- on line 2

Warning: Failed opening '/test.php' for inclusion
(include_path='.;c:\php4\pear') in Z:\!dis
trib\aaa\- on line 2

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

[2002-09-28 23:01:54] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

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

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



Thread (13 messages)

« previous php.bugs (#21589) next »