php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2519 reading from socket causes crash
Submitted: 1999-10-14 04:12 UTC Modified: 2000-07-23 01:29 UTC
From: jh at synergy dot cx Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 2 OS: WinNT 4.0 SP5
Private report: No CVE-ID: None
 [1999-10-14 04:12 UTC] jh at synergy dot cx
Reading w/ fread from the socket causes PHP to crash:

fsockopen($server,$port,&$errno,&$errstr,$timeout);
$str =  fread($handle,4000);

I don't know if fread is intended for use with sockets
but it worked with PHP 3.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-23 01:29 UTC] zak at cvs dot php dot net
Described bug does not occur on Win98/PHP 4.1pl2 or WinNT 4.0/PHP4.0.0 CGI version.

Contacted user - advised them to upgrade to a newer release of PHP.

Will reopen bug if user contacts me to let me know that they are still experiencing the bug with a newer version of PHP
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 07:01:28 2024 UTC