#36473 [NEW]: Foreign Images w/getimagesize() crash Apache2
| From: | punkpuke at terraimpetus dot com | Date: | Tue, 21 Feb 2006 09:50:08 +0000 |
| Subject: | #36473 [NEW]: Foreign Images w/getimagesize() crash Apache2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93468@lists.php.net to get a copy of this message | ||
From: punkpuke at terraimpetus dot com
Operating system: Windows XP Pro
PHP version: 4.4.2
PHP Bug Type: Apache2 related
Bug description: Foreign Images w/getimagesize() crash Apache2
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 bug report at http://bugs.php.net/?id=36473&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36473&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36473&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36473&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36473&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36473&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36473&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36473&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36473&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36473&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36473&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36473&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36473&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36473&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36473&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36473&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36473&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36473&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36473&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36473&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36473&r=mysqlcfg