#18363 [Com]: [chm] bug on function.fread.html
| From: | josh at trollprod dot com | Date: | Fri, 03 Jan 2003 16:22:13 +0000 |
| Subject: | #18363 [Com]: [chm] bug on function.fread.html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28990@lists.php.net to get a copy of this message | ||
ID: 18363
Comment by: josh@trollprod.com
Reported By: asyka@kimo.com.tw
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] php-bugs@lists.php.net
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] iliaa@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
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] alfil_uno@hotmail.com
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] asyka@kimo.com.tw
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] sniper@php.net
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