go to bug id or search bugs for
Even when using PHP with GD on a 64-bit machine, the 4 GB memory limit rears its ugly head.
Thus, we have problems like this one:
I would propose going in and updating the integer definitions to accommodate 64-bit processors and its larger memory space, but GD isn't my forte so I'm not sure if I would break all of the things if I went in and patched it.
echo PHP_INT_MAX . '<br/>';
echo 174400 * 249600 . '<br/>';
$img = imagecreatetruecolor(174400, 249600);
Warning: imagecreatetruecolor(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully in /home/bartek/Documents/WWW/WOF/application/controllers/EditorController.php on line 5
<b>Parse error</b>: imagecreatetruecolor(): product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
Add a Patch
Add a Pull Request
Related To: Bug #66387
That is something that should be resolved for libgd generally, not
only for our bundled libgd, so I'm suspending this ticket as
there's already a respective one for libgd, see