From 294d33c2f69e4a243f706933deef2cdfe508372a Mon Sep 17 00:00:00 2001 From: Jerald Johnson Date: Wed, 14 Aug 2013 12:47:41 -0500 Subject: [PATCH] Update config.default.php Since 2010 (at least) 0 has been used for unlimited in maxmem However, unlimited is actually -1 and can cause issues in certain environment. --- libraries/config.default.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/config.default.php b/libraries/config.default.php index d24c35b682..4a0de3128d 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -705,13 +705,13 @@ $cfg['ExecTimeLimit'] = 300; $cfg['SessionSavePath'] = ''; /** - * maximum allocated bytes ('0' for no limit) + * maximum allocated bytes ('-1' for no limit) * this is a string because '16M' is a valid value; we must put here * a string as the default value so that /setup accepts strings * * @global string $cfg['MemoryLimit'] */ -$cfg['MemoryLimit'] = '0'; +$cfg['MemoryLimit'] = '-1'; /** * mark used tables, make possible to show locked tables (since MySQL 3.23.30)