#28639 [Opn->Ver]: imageCreateFromGif infinite loop. max processor
| From: | vrana@php.net | Date: | Mon, 14 Jun 2004 12:02:13 +0000 |
| Subject: | #28639 [Opn->Ver]: imageCreateFromGif infinite loop. max processor | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60876@lists.php.net to get a copy of this message | ||
ID: 28639
Updated by: vrana@php.net
Reported By: jim at bluedojo dot com
-Status: Open
+Status: Verified
Bug Type: GD related
Operating System: Windows XP
PHP Version: 4.3.7
New Comment:
It seems this is Windows specific issue caused most probably by
php_gd2.dll.
Previous Comments:
------------------------------------------------------------------------
[2004-06-06 20:04:26] jim at bluedojo dot com
Yes, the images are corrupt. I believe that is why the function
imageCreateFromGif() is going into an infinite loop. I need to have
the function just exit and not loop infinitely.
When I run the php page from the command line it goes into an infinite
loop. When I load the php page from an Apache web server, it causes
Apache to stall infinitely. My processor maxes out and I have to go to
the Windows Task Menu to cancel the process.
I am running the following:
Windows XP
Apache/1.3.28
PHP/4.3.7
GD library is turned on in php.ini
Any help would be greatful. Thanks.
------------------------------------------------------------------------
[2004-06-06 18:32:07] iliaa@php.net
The 2 gif images you've offered are corrupt, and I cannot
replicate the cpu usage you are reporting.
------------------------------------------------------------------------
[2004-06-05 20:00:26] jim at bluedojo dot com
This picture also causes processor to max out:
http://www.geocities.com/Tokyo/Palace/5677/riiya1.gif
------------------------------------------------------------------------
[2004-06-05 05:55:24] jim at bluedojo dot com
Description:
------------
For some reason, this gif causes the processor to max out at 100% when
imageCreateFromGif() function is used.
Reproduce code:
---------------
<?
imageCreateFromGif("http://members.tripod.com/~TyroneZero/drstrangelove.gif");
?>
Expected result:
----------------
Creates a GD image
Actual result:
--------------
Infinite Loop. Maxes out processor. Causes operating system to stall.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28639&edit=1