You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set ErrorHandler to high ErrorHandler::memoryReserveSize.
What is the expected result?
Response time does not change.
What do you get instead?
Increased response time.
Additional info
yii\base\ErrorHandler::register
if ($this->memoryReserveSize > 0) {
$this->_memoryReserve = str_repeat('x', $this->memoryReserveSize); //was in 2.0.45
//at high values MemoryReserveSize is slower than via str_repeat
//Eg. MemoryReserveSize = 100000000 (100 MB), just for visible result
$this->_memoryReserve = str_pad('', $this->memoryReserveSize, 'x'); //became starting from 2.0.46
}
upgrade from 2.0.45 to 2.0.48
10 MB reserved. memoryReserveSize = 10000000.
Q
A
Yii version
2.0.48
PHP version
8.1.17
Operating system
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
Set ErrorHandler to high ErrorHandler::memoryReserveSize.
What is the expected result?
Response time does not change.
What do you get instead?
Increased response time.
Additional info
yii\base\ErrorHandler::register
upgrade from 2.0.45 to 2.0.48
10 MB reserved. memoryReserveSize = 10000000.
The text was updated successfully, but these errors were encountered: