ID:               22257
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dev at sonicunion dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Windows 98 SE
 PHP Version:      4.2.3
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

We're alread at PHP 4.3.1..



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

[2003-02-17 14:06:43] dev at sonicunion dot co dot uk

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!]

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

[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

Reply via email to