<?php
$can_set = true;
if (!function_exists('set_time_limit'))
$can_set = false;
// Are we able to use the function
$current_time_limit = ini_get('max_execution_time');
@set_time_limit(123);
$new_time_limit = ini_get('max_execution_time');
@set_time_limit($current_time_limit);
if (empty($current_time_limit) || $current_time_limit === $new_time_limit)
$can_set = false;
echo $current_time_limit, ' ', (int) $can_set, ' ' , $new_time_limit;
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
0 0 123