php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37699 Apache crashes with fopen()
Submitted: 2006-06-05 10:42 UTC Modified: 2006-06-05 10:48 UTC
From: kim at steinhaug dot com Assigned:
Status: Not a bug Package: *URL Functions
PHP Version: 4CVS-2006-06-05 (snap) OS: Windows 2000
Private report: No CVE-ID: None
 [2006-06-05 10:42 UTC] kim at steinhaug dot com
Description:
------------
When accessing the fopen() function with an URL starting with http:// apache crashes.

Previous bugs states that this has been fixed in CVS, but the latest snap still crashes.

First I upgraded to v4.4.2, I read alot of bugs and then I upgraded to the latest snap but the bug is still here.

Reproduce code:
---------------
<?php
$url="http://www.php.net/";

$xhtml = '';
if($filehandle = @fopen($url, 'rb')) {
	$xhtml = fread($filehandle, 4096);
	fclose($filehandle);

	echo "$xhtml";
}
?>

Expected result:
----------------
the HTML of the URL

Actual result:
--------------
Apache crashes and restarts.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-05 10:48 UTC] kim at steinhaug dot com
Forgot to copy the new .dll into system32 folder... 

My bad, latest snap works like a charm!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 12:01:27 2024 UTC