ID: 19650 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows PHP Version: 4.2.3 New Comment:
<?include "/test.php"?> is not good this is better: <?php include ("./test.php"); ?> ok? Previous Comments: ------------------------------------------------------------------------ [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.. ------------------------------------------------------------------------ [2002-09-30 06:28:36] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ 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