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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kim at steinhaug dot com
New email:
PHP Version: OS:

 

 [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: Sat Dec 21 15:01:29 2024 UTC