memory_limit doesn't affect imagecreatetruecolor?
Posted: Tue Oct 17, 2006 5:55 pm
I was playing around and tried to allocate an extremely large image with imagecreatetruecolor(10000, 10000) to deliberately hit the memory limit on my server (8MB).
When I ran the script, it started consuming memory, then the script stalled, returned nothing, and the memory was freed. No "memory limit hit" message from PHP though, and memory usage of the script reached over 1GB (the script alone, not total memory usage on my system).
Does this mean that imagecreatetruecolor() doesn't obey the memory limit, or did I just miss something?
When I ran the script, it started consuming memory, then the script stalled, returned nothing, and the memory was freed. No "memory limit hit" message from PHP though, and memory usage of the script reached over 1GB (the script alone, not total memory usage on my system).
Does this mean that imagecreatetruecolor() doesn't obey the memory limit, or did I just miss something?