Browse Source

Fix #17948: Ignore errors caused by `set_time_limit(0)`

tags/2.0.35
Brandon Kelly 5 years ago committed by GitHub
parent
commit
13c14292c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 5
      framework/web/Response.php

1
framework/CHANGELOG.md

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.35 under development
------------------------
- Bug #17948: Ignore errors caused by `set_time_limit(0)` (brandonkelly)
- Bug #17810: Fix EachValidator crashing with uninitialized typed properties (ricardomm85)
- Bug #17942: Fix for `DbCache` loop in MySQL `QueryBuilder` (alex-code)

5
framework/web/Response.php

@ -430,9 +430,8 @@ class Response extends \yii\base\Response
return;
}
if (function_exists('set_time_limit')) {
set_time_limit(0); // Reset time limit for big files
} else {
// Try to reset time limit for big files
if (!function_exists('set_time_limit') || !@set_time_limit(0)) {
Yii::warning('set_time_limit() is not available', __METHOD__);
}

Loading…
Cancel
Save