Page 1 of 1

gd_memcheck / GD php memory check

Posted: Mon 24. Nov 2008, 00:40
by Jensensen
how does it work? does anyone has any experience?

Re: gd_memcheck / GD php memory check

Posted: Mon 24. Nov 2008, 08:55
by Heiko H.
Hi Jens,

in earlier versions, if someone has uploaded a too big picture, GD has "crashed".

Code: Select all

Fatal error: Allowed memory size of xxxxxx bytes exhausted (tried to
allocate xxxx bytes)
This function checkes before processing the picture, whether sufficient memory is available.

Heiko...

Re: gd_memcheck / GD php memory check

Posted: Mon 24. Nov 2008, 09:42
by juergen
-> and ...

phpinfo() is your memcheck-friend