#36102 [Opn->Csd]: Apache crashes using file() or fopen() with URLs
ID: 36102
Updated by: tony2001@php.net
Reported By: gm at html dot it
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: Windows 2000 Professional
PHP Version: 4.4.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-01-20 15:30:14] 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36102&edit=1
Thread (2 messages)