|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-21 10:50 UTC] punkpuke at terraimpetus dot com
Description:
------------
When accessing foreign URLs with getimagesize(), apache server crashes with:
szAppName : Apache.exe szAppVer : 2.0.55.0 szModName : php4ts.dll
szModVer : 4.4.2.2 offset : 000c5fca
---------------------
The only changes made to the PHP.ini file were the enabling/removing the comment in front of the GD2 and the ZIP, DLL extensions.
Server is running as a test environment on localhost.
Reproduce code:
---------------
<?php
getimagesize('images/example.gif'); //Works Fine (Local)
getimagesize('example.jpg'); //Works Fine
//The following crash the Entire Apache server, no matter where they're used
getimagesize('http://example.com/example/example.jpg');//Crashes
getimagesize('http://example.com/example.jpg'); //Crashes
getimagesize('http://example.com/example.gif'); //Crashes
@getimagesize('http://example.com/example.gif'); //Crashes
?>
Expected result:
----------------
Apache 2 Servers lags for a slight moment, then crashes 100% of the time that a page using a foreign URL call to getimagesize() is run.
Patchesimage (last revision 2011-01-31 08:11 UTC by ishanka_layanthi at yahoo dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 21:00:01 2025 UTC |
Get the same problem (PHP crashes) with fopen as well as file and file_get_contents. Under 4.2.2. Try this code: <?php $host = 'weather.aero'; $location = "/dataserver0_9/httpparam?dataSource=airsigmets&requestType=retrieve&format=xml&minLat=25&minLon=-130&maxLat=65&maxLon=-40&hoursBeforeNow=3"; $pirepUrl = "http://".$host.$location; $fd = fopen($pirepUrl, "rb"); echo("Done"); ?>