mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 09:28:37 +08:00
Improve performance of handling ErrorHandler::$memoryReserveSize
This commit is contained in:
@ -94,7 +94,7 @@ abstract class ErrorHandler extends Component
|
||||
set_error_handler([$this, 'handleError']);
|
||||
}
|
||||
if ($this->memoryReserveSize > 0) {
|
||||
$this->_memoryReserve = str_pad('', $this->memoryReserveSize, 'x');
|
||||
$this->_memoryReserve = str_repeat('x', $this->memoryReserveSize);
|
||||
}
|
||||
// to restore working directory in shutdown handler
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
|
||||
Reference in New Issue
Block a user