ID: 36473 Comment by: Peter at ibforen dot de 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:
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. Previous Comments: ------------------------------------------------------------------------ [2006-02-21 23:10:44] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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