ID:               20393
 User updated by:  [EMAIL PROTECTED]
-Summary:          createImageFromJpeg with uncomplete jpeg -> Apache 2
                   hangs -> taking 99% CPU
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         *Graphics related
 Operating System: Windows XP Pro
 PHP Version:      4.2.3
 New Comment:

Error in summary. CreateImageFromJpeg must be ImageCreateFromJpeg


Previous Comments:
------------------------------------------------------------------------

[2002-11-12 10:11:45] [EMAIL PROTECTED]

I call the function createImageFromJpeg like the documentation tells:

*************

function myFunction($cImagefile) {
   $oImage = ImageCreateFromJpeg($cImagefile);

   if(!$oImage) // Error
      return false;
   else
      return true;
}

*************

I think $oImage will be invalid if $cImagefile is a uncomplete
jpeg-file (the upload of the picture didn't finished) and my function
will return false.
But Apache 2 takes 99% of CPU and hangs.

I have to stop the Apache 2 service and restart.

The "error/problem" doesn't appear with a completely uploaded jpeg-file
because ImageCreateFromJpeg returns a valid image-ressource

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20393&edit=1

Reply via email to