Bug #16170 Updated: Apache error fread() fopen()
| From: | sniper@php.net | Date: | Thu, 11 Jul 2002 03:56:02 +0000 |
| Subject: | Bug #16170 Updated: Apache error fread() fopen() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13818@lists.php.net to get a copy of this message | ||
ID: 16170
Updated by: sniper@php.net
Reported By: areyelt@web.de
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: w2k
PHP Version: 4.1.2
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.
Previous Comments:
------------------------------------------------------------------------
[2002-03-20 06:48:27] areyelt@web.de
i think the problem is filesystme function related
------------------------------------------------------------------------
[2002-03-19 13:16:46] areyelt@web.de
System:
w2k PROF
Apache/1.3.23
PHP 4.12
My Apache crashes with error code:
[Tue Mar 19 19:09:47 2002] [info] master_main: Child processed exited
prematurely. Restarting the child process.
[Tue Mar 19 19:09:47 2002] [info] Parent: Created child process 1080
[Tue Mar 19 19:09:47 2002] [info] Parent: Duplicating socket 484 and
sending it to child process 1080
[Tue Mar 19 19:09:47 2002] [info] BytesRead = 372 WSAProtocolInfo =
2006620
reason is:
$filename = "d:\\web\\kontakt\\test.jpg";
$fp = fopen($filename, "rb");
while(!feof($fp)) {
$attachment .= fread($fp, 1024);
}
fclose($fp);
OR:
$filename = "d:\\web\\kontakt\\test.jpg";
$fd = (fopen($filename, "rb"));
$attachment = addslashes(fread($fd, filesize($filename)));
fclose ($fd);
There's no problem on a Linux System.
What should i do?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16170&edit=1