#20393 [NEW]: createImageFromJpeg with uncomplete jpeg -> Apache 2 hangs -> taking 99% CPU

From: Date: Tue, 12 Nov 2002 16:11:45 +0000
Subject: #20393 [NEW]: createImageFromJpeg with uncomplete jpeg -> Apache 2 hangs -> taking 99% CPU
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24702@lists.php.net to get a copy of this message
From: tobias-jamin@gmx.de Operating system: Windows XP Pro PHP version: 4.2.3 PHP Bug Type: *Graphics related Bug description: createImageFromJpeg with uncomplete jpeg -> Apache 2 hangs -> taking 99% CPU 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 bug report at http://bugs.php.net/?id=20393&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20393&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20393&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20393&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20393&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20393&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20393&r=support Expected behavior: http://bugs.php.net/fix.php?id=20393&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20393&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20393&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20393&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20393&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20393&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20393&r=isapi

« previous php.bugs (#24702) next »