Browse Source

Zend_Memory: Fix for unlimited memory PHP configuration. Closes [ZF-7340].

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16926 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander 16 years ago
parent
commit
3c6d7f64a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Memory/Manager.php

+ 1 - 1
library/Zend/Memory/Manager.php

@@ -167,7 +167,7 @@ class Zend_Memory_Manager
         $this->_generateMemManagerId();
 
         $memoryLimitStr = trim(ini_get('memory_limit'));
-        if ($memoryLimitStr != '') {
+        if ($memoryLimitStr != ''  &&  $memoryLimitStr != -1) {
             $this->_memoryLimit = (integer)$memoryLimitStr;
             switch (strtolower($memoryLimitStr[strlen($memoryLimitStr)-1])) {
                 case 'g':