From: agnermadsen at hotmail dot com Operating system: FreeBSD PHP version: 4.3.3 PHP Bug Type: GD related Bug description: Sometimes imagecreatefromjpeg stops
Description: ------------ If the file size of the JPEG-file is over 400kb then imagecreatefromjpeg() sometimes crashes and sometimes it's when it reaches imagecreatetruecolor(); Reproduce code: --------------- $width=650; $im = @imagecreatefromjpeg($pic); $size=getimagesize ($pic ); $height=intval($width/$size[0]*$size[1]); if ($height<$width/$size[0]*$size[1]) $height++; [EMAIL PROTECTED]($width,$height); imagecopyresampled ( $picre,$im, 0, 0, 0, 0, $width, $height, $size[0], $size[1]); imagejpeg($picre); imagedestroy($picre); imagedestroy($im); Expected result: ---------------- Made a new picture. Actual result: -------------- Nothing -- Edit bug report at http://bugs.php.net/?id=25919&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25919&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25919&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25919&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25919&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25919&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25919&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25919&r=support Expected behavior: http://bugs.php.net/fix.php?id=25919&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25919&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25919&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25919&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25919&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25919&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25919&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25919&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25919&r=float