Commit d182ce1d by Qiang Xue

Renamed reservedMemorySize to memoryReserveSize.

parent e7e9723f
...@@ -60,7 +60,7 @@ abstract class Application extends Module ...@@ -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. * the help of this reserved memory. If you set this value to be 0, no memory will be reserved.
* Defaults to 256KB. * Defaults to 256KB.
*/ */
public $reservedMemorySize = 262144; public $memoryReserveSize = 262144;
/** /**
* @var string Used to reserve memory for fatal error handler. * @var string Used to reserve memory for fatal error handler.
...@@ -132,8 +132,8 @@ abstract class Application extends Module ...@@ -132,8 +132,8 @@ abstract class Application extends Module
ini_set('display_errors', 0); ini_set('display_errors', 0);
set_exception_handler(array($this, 'handleException')); set_exception_handler(array($this, 'handleException'));
set_error_handler(array($this, 'handleError'), error_reporting()); set_error_handler(array($this, 'handleError'), error_reporting());
if ($this->reservedMemorySize > 0) { if ($this->memoryReserveSize > 0) {
$this->_memoryReserve = str_repeat('x', $this->reservedMemorySize); $this->_memoryReserve = str_repeat('x', $this->memoryReserveSize);
} }
register_shutdown_function(array($this, 'handleFatalError')); register_shutdown_function(array($this, 'handleFatalError'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment