From d182ce1d38994d571ced7236cceb2b7ac82fc7f0 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 18 Jun 2013 16:52:06 -0400 Subject: [PATCH] Renamed reservedMemorySize to memoryReserveSize. --- framework/yii/base/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/yii/base/Application.php b/framework/yii/base/Application.php index 845c564..41df6c0 100644 --- a/framework/yii/base/Application.php +++ b/framework/yii/base/Application.php @@ -60,7 +60,7 @@ abstract class Application extends Module * the help of this reserved memory. If you set this value to be 0, no memory will be reserved. * Defaults to 256KB. */ - public $reservedMemorySize = 262144; + public $memoryReserveSize = 262144; /** * @var string Used to reserve memory for fatal error handler. @@ -132,8 +132,8 @@ abstract class Application extends Module ini_set('display_errors', 0); set_exception_handler(array($this, 'handleException')); set_error_handler(array($this, 'handleError'), error_reporting()); - if ($this->reservedMemorySize > 0) { - $this->_memoryReserve = str_repeat('x', $this->reservedMemorySize); + if ($this->memoryReserveSize > 0) { + $this->_memoryReserve = str_repeat('x', $this->memoryReserveSize); } register_shutdown_function(array($this, 'handleFatalError')); }