From 1f20216af5916fc43fc6845faa72a5188ca1cb8e Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 08:51:09 +0100 Subject: [PATCH 1/7] Update File.php --- src/File.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/File.php b/src/File.php index 8cc56721..5f9da45b 100644 --- a/src/File.php +++ b/src/File.php @@ -217,8 +217,10 @@ public static function move($src, $dest, $path = '', $useStreams = false) * @since 1.0 */ public static function write($file, &$buffer, $useStreams = false, $appendToFile = false) - { - @set_time_limit(ini_get('max_execution_time')); + { + if (\function_exists('set_time_limit')) { + @set_time_limit(ini_get('max_execution_time')); + } // If the destination directory doesn't exist we need to create it if (!file_exists(\dirname($file))) From 716b75d850319621e2477ee600ac8239c7d011d3 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 08:54:00 +0100 Subject: [PATCH 2/7] Update Folder.php --- src/Folder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Folder.php b/src/Folder.php index d29176f6..bb450508 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -33,7 +33,9 @@ abstract class Folder */ public static function copy($src, $dest, $path = '', $force = false, $useStreams = false) { - @set_time_limit(ini_get('max_execution_time')); + if (\function_exists('set_time_limit')) { + @set_time_limit(ini_get('max_execution_time')); + } if ($path) { From 12f494dcc1db475d244fa63246c0ddd78a831af4 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 09:21:32 +0100 Subject: [PATCH 3/7] Update Folder.php --- src/Folder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Folder.php b/src/Folder.php index bb450508..2a0103cb 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -33,7 +33,8 @@ abstract class Folder */ public static function copy($src, $dest, $path = '', $force = false, $useStreams = false) { - if (\function_exists('set_time_limit')) { + if (\function_exists('set_time_limit')) + { @set_time_limit(ini_get('max_execution_time')); } From dac6520e2f2452d737e3986af88ca61a401cfd96 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 09:22:03 +0100 Subject: [PATCH 4/7] Update File.php --- src/File.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/File.php b/src/File.php index 5f9da45b..954b7134 100644 --- a/src/File.php +++ b/src/File.php @@ -218,7 +218,8 @@ public static function move($src, $dest, $path = '', $useStreams = false) */ public static function write($file, &$buffer, $useStreams = false, $appendToFile = false) { - if (\function_exists('set_time_limit')) { + if (\function_exists('set_time_limit')) + { @set_time_limit(ini_get('max_execution_time')); } From 284ff57c4afb0494f3cf5b95082b2b4b7b52ecbb Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 14:34:37 +0100 Subject: [PATCH 5/7] Update File.php --- src/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File.php b/src/File.php index 954b7134..38051f92 100644 --- a/src/File.php +++ b/src/File.php @@ -217,8 +217,8 @@ public static function move($src, $dest, $path = '', $useStreams = false) * @since 1.0 */ public static function write($file, &$buffer, $useStreams = false, $appendToFile = false) - { - if (\function_exists('set_time_limit')) + { + if (\function_exists('set_time_limit')) { @set_time_limit(ini_get('max_execution_time')); } From 0aa12b354572a5b63f952f28c34b41f4b0e993ef Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 30 Aug 2023 14:34:58 +0100 Subject: [PATCH 6/7] Update Folder.php --- src/Folder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Folder.php b/src/Folder.php index 2a0103cb..64ce42d8 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -33,7 +33,7 @@ abstract class Folder */ public static function copy($src, $dest, $path = '', $force = false, $useStreams = false) { - if (\function_exists('set_time_limit')) + if (\function_exists('set_time_limit')) { @set_time_limit(ini_get('max_execution_time')); } From 4b1c89504338907fdcdada6c158266b99a68515c Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Fri, 8 Sep 2023 10:24:35 +0100 Subject: [PATCH 7/7] Update File.php --- src/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/File.php b/src/File.php index 38051f92..0e76d709 100644 --- a/src/File.php +++ b/src/File.php @@ -220,7 +220,7 @@ public static function write($file, &$buffer, $useStreams = false, $appendToFile { if (\function_exists('set_time_limit')) { - @set_time_limit(ini_get('max_execution_time')); + set_time_limit(ini_get('max_execution_time')); } // If the destination directory doesn't exist we need to create it