samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Thumbnail Creation when "memory_limit = -1" #408

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Referencing bug 400.  
http://code.google.com/p/nextgen-gallery/issues/detail?id=400

In lib/gd.thumbnail.inc.php @ line 235 you get the memory limit.  However, if 
-1 is specified, it fails.  

http://www.php.net/manual/en/ini.core.php#ini.memory-limit

"This sets the maximum amount of memory in bytes that a script is allowed to 
allocate. This helps prevent poorly written scripts for eating up all available 
memory on a server. Note that to have no memory limit, set this directive to 
-1."

When -1 is called, calling memory_get_peak_usage 
(http://www.php.net/manual/en/function.memory-get-peak-usage.php) would 
PROBABLY be the best solution.

Hope this helps!

Original issue reported on code.google.com by phpmails...@gmail.com on 22 Aug 2011 at 11:58

GoogleCodeExporter commented 8 years ago
fixed in r992

Original comment by alex.cologne on 11 Sep 2011 at 4:24