Skip to content

Commit a046323

Browse files
committed
Fix diagnostics showing max_exec_time 0 as low
Fix Diagnostics page showing 0 max_execution_time as too low rather than unlimited. Regression introduced by 76dcd3f changing == to === operators. Fix by calling intval so that === works as intended.
1 parent 525fd12 commit a046323

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Unreleased
22

33
- Fix max_execution_time being set to 30 instead of 0.
4+
- Fix Diagnostics page showing 0 max_execution_time as too low
5+
rather than unlimited.
46

57
## Static Deploy 9.0.0 (2025-07-16)
68

src/ViewRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function renderDiagnosticsPage(): void {
3333
$view['site_info'] = SiteInfo::getAllInfo();
3434
$view['phpOutOfDate'] = version_compare( PHP_VERSION, '8.1', '<' );
3535
$view['uploadsWritable'] = SiteInfo::isUploadsWritable();
36-
$view['maxExecutionTime'] = ini_get( 'max_execution_time' );
36+
$view['maxExecutionTime'] = intval( ini_get( 'max_execution_time' ) );
3737
$view['curlSupported'] = SiteInfo::hasCURLSupport();
3838
$view['permalinksAreCompatible'] = SiteInfo::permalinksAreCompatible();
3939
$view['domDocumentAvailable'] = class_exists( 'DOMDocument' );

0 commit comments

Comments
 (0)