From 148b375ec2aefbaff0f2a39980b216613920d5a8 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 9 Nov 2020 19:11:00 -0800 Subject: [PATCH] Make 600 a string for ini_set --- app/Console/Commands/LdapSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index 71aa6b571d..40349bccbe 100644 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -108,7 +108,7 @@ class LdapSync extends Command */ public function handle() { - ini_set('max_execution_time', env('LDAP_TIME_LIM', 600)); //600 seconds = 10 minutes + ini_set('max_execution_time', env('LDAP_TIME_LIM', "600")); //600 seconds = 10 minutes ini_set('memory_limit', '500M'); $old_error_reporting = error_reporting(); // grab old error_reporting .ini setting, for later re-enablement error_reporting($old_error_reporting & ~E_DEPRECATED); // disable deprecation warnings, for LDAP in PHP 7.4 (and greater)