CGameProgrammer Posted June 12, 2008 Share Posted June 12, 2008 My image script has recently (for some reason) begun crashing at random in the ImageCopy or ImageCopyResampled calls, with the same (valid) input image and no memory limit. This frustrated me until by change I discovered that calling ob_flush anywhere before the image functions, even right at the beginning of the script, makes it work. But the output buffer is empty (confirmed both with ob_get_contents and ob_get_length). So why are these GD functions crashing? And when I say crashing, I mean exactly that. No exception gets thrown, no error gets logged to Apache's or PHP's error logs, and execution of the script halts immediately. Link to comment https://forums.phpfreaks.com/topic/109922-some-gd-functions-crash-at-random-fixed-by-calling-ob_flush-first/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.