#36473 [Opn->Fbk]: Foreign Images w/getimagesize() crash Apache2
| From: | mike@php.net | Date: | Tue, 21 Feb 2006 12:52:33 +0000 |
| Subject: | #36473 [Opn->Fbk]: Foreign Images w/getimagesize() crash Apache2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93475@lists.php.net to get a copy of this message | ||
ID: 36473
Updated by: mike@php.net
Reported By: punkpuke at terraimpetus dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP Pro
PHP Version: 4.4.2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Works fine here.
Previous Comments:
------------------------------------------------------------------------
[2006-02-21 10:50:07] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36473&edit=1