|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-12 10:18 UTC] tobias-jamin at gmx dot de
[2003-03-22 13:56 UTC] fbn79 at libero dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
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