#36473 [Com]: Foreign Images w/getimagesize() crash Apache2
| From: | stitched at mindspring dot com | Date: | Mon, 27 Feb 2006 16:16:41 +0000 |
| Subject: | #36473 [Com]: Foreign Images w/getimagesize() crash Apache2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93719@lists.php.net to get a copy of this message | ||
ID: 36473
Comment by: stitched at mindspring dot com
Reported By: punkpuke at terraimpetus dot com
Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP Pro
PHP Version: 4.4.2
New Comment:
This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000. Will try to get a backtrack but given where and when
it's crashing it may not work.
Dave
Previous Comments:
------------------------------------------------------------------------
[2006-02-24 13:59:44] Peter at ibforen dot de
I have had a similar problem with IIS and php.exe:
With external urls getimagesize causes an indefinite loop in that
function.
Using the isapi module php4isapi.dll solves the problem.
------------------------------------------------------------------------
[2006-02-21 23:10:44] mike@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-02-21 20:04:02] punkpuke at terraimpetus dot com
I would love to help, however those instructions aren't detailed enough
for me to do anything. I need to know the exact files I need and where
to put them. I'm sorry, I'm not that smart. :(
------------------------------------------------------------------------
[2006-02-21 13:52:32] mike@php.net
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.
------------------------------------------------------------------------
[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