ID: 18363 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: No Feedback Bug Type: Reproducible crash Operating System: windows PHP Version: 4.2.1 New Comment:
I got a similar problem with file which containt 1A (hexa) but no crash the fread only skip the 1A ... on Win NT with Apache/1.3.27 (Win32) PHP/4.2.3 I have the same probleme with : Apache/1.3.27 (Win32) PHP/4.4.0-dev for example a 7437824 bytes files become a 7.437.722 Bytes files here is the code I use : $file1 = @fopen($localfile, "rb"); $file2 = @fopen($destfile, "w"); while (!feof($fp)) { fwrite($file2,fread($file1, filesize($localfile))); } Previous Comments: ------------------------------------------------------------------------ [2002-10-17 01:00:01] [EMAIL PROTECTED] No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-10-01 18:09:49] [EMAIL PROTECTED] 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 I've tried opening various exe and com files and I am unable to replicate the crash you've reported. Please try the latest release and see if the problem still occurs. ------------------------------------------------------------------------ [2002-07-23 00:59:02] [EMAIL PROTECTED] When reading with the function fread I have found an error when read hexadecimal "1A", not, but I believe that they must more of the sort have. ------------------------------------------------------------------------ [2002-07-17 02:52:42] [EMAIL PROTECTED] for example:(abc.exe is execution file) $fp=fopen("abc.exe","rb"); $exe_get=fread($fp,filesize("abc.exe")); ------------------------------------------------------------------------ [2002-07-17 02:18:43] [EMAIL PROTECTED] oops...misunderstood (!) this. Can you please show us a SHORT example script which causes this crash? ------------------------------------------------------------------------ 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/18363 -- Edit this bug report at http://bugs.php.net/?id=18363&edit=1