Hello everybody. I have the following ini variable in phpini file.
max_execution_time 50000
memory_limit 40M
post_max_size 8M
When I try to sketch an image, it causes the following error:
Fatal error: Out of memory (30670848 allocated) (tried to allocate 14976 bytes)
image size is 700 kb.
Can someone help me?
Your problem is not that one call to imagecreatefromjpeg (), but that you previously allocated memory. In the end, allocation is not performed with a memory request of only ~ 14 KB.
, script, imagedestroy() . (, webgrind), .
700 ? , .JPG. "" , 10 000 10 000 . / PHP, 10k x 10k x 3 = 286 (10x 3 //).
, , , 40M, 29,25 . , - , , .conf -, , .htaccess, , 40M.
Source: https://habr.com/ru/post/1766547/More articles:Протокол управления кофе-транспортом Hyper Text - browserCreating a Visual Studio Redistributable Project with cmake - visual-studioHow can I get over 1000 Google results using the Google Perl API? - perlHow to output DOMDocuments? - domPHP closes connection after 10 seconds without reflecting data - phpnamed routes with design in Rails 3 haml view - ruby | fooobar.comhow to check if Vista or XP user is working - vb.netCan browsers connect to the proxy server via SSL / TLS? - browserSleeping cascade versus manual removal - hibernateEnable drag-and-drop from Explorer to Run as Administrator - c #All Articles