php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36102 Apache crashes using file() or fopen() with URLs
Submitted: 2006-01-20 15:30 UTC Modified: 2006-01-20 15:34 UTC
From: gm at html dot it Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.4.2 OS: Windows 2000 Professional
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gm at html dot it
New email:
PHP Version: OS:

 

 [2006-01-20 15:30 UTC] gm at html dot it
Description:
------------
Apache crashes when using file(), or file_get_contents() or fopen() with a URL (allow_url_fopen enabled in php.ini, of course).

I got back to php 4.4.1 and the everything works fine

Reproduce code:
---------------
<?php

$file = file_get_contents('http://www.site.ltd/image.jpg');

echo strlen($file);

?>

Expected result:
----------------
The size of the file

Actual result:
--------------
Apache crashes (no error in error.log)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-20 15:34 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 02:05:56 2022 UTC