ID: 22257
User updated by: dev at sonicunion dot co dot uk
Reported By: dev at sonicunion dot co dot uk
Status: Open
Bug Type: Filesystem function related
Operating System: Windows 98 SE
PHP Version: 4.2.3
New Comment:
That double slash in the error ( c:\php\www\sonicunion_beta\\run.php )
should not be there. I re-ran the script and the error still occurs,
but with a single slash (..._beta\run.php). This was only caused
because I was daft enough to type the URI in wrong in my browser.
[NOTE: The same error DOES still occur!]
Previous Comments:
------------------------------------------------------------------------
[2003-02-17 14:02:25] dev at sonicunion dot co dot uk
Using the code:
<?php
$file = fopen("test_index.php", "rb");
$openedfile = fread ($file, filesize ($file));
$string = addslashes ($openedfile);
eval ("\$string=\"$string\";");
$string = stripslashes ($string);
?>
On my machine, it triggors the error:
Warning: stat failed for Resource id #1 (errno=2 - No such file or
directory) in c:\php\www\sonicunion_beta\\run.php on line 5
When error is surpressed, with @, the file read is not evaled. No other
errors occur.
Specs: Win98; Apache 1.3.2; PHP4.2.3;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22257&edit=1