From 9daa1a65cf14ed3bf7c4808d815b8ee71acafb09 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 4 Oct 2023 01:33:57 +0900 Subject: [PATCH] Deprecate old, rarely used methods of FileHandler --- classes/file/FileHandler.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php index 0ffba2ea9..6a345e441 100644 --- a/classes/file/FileHandler.class.php +++ b/classes/file/FileHandler.class.php @@ -699,6 +699,7 @@ class FileHandler /** * Reads ini file, and puts result into array * + * @deprecated * @see self::writeIniFile() * @param string $filename Path of the ini file * @return array ini array (if the target file does not exist, it returns FALSE) @@ -724,6 +725,7 @@ class FileHandler * $ini['section']['key2_in_section'] = 'value2_in_section';
* self::writeIniFile('exmple.ini', $ini); * + * @deprecated * @see self::readIniFile() * @param string $filename Target ini file name * @param array $arr Array @@ -742,6 +744,7 @@ class FileHandler /** * Make array to ini string * + * @deprecated * @param array $arr Array * @return string */ @@ -778,6 +781,7 @@ class FileHandler * * If the directory of the file does not exist, create it. * + * @deprecated * @param string $filename Target file name * @param string $mode File mode for fopen * @return FileObject File object @@ -837,10 +841,9 @@ class FileHandler } /** - * @deprecated - * * Clears file status cache * + * @deprecated * @param string|array $target filename or directory * @param boolean $include include files in the directory */ @@ -861,10 +864,9 @@ class FileHandler } /** - * @deprecated - * * Invalidates a cached script of OPcache * + * @deprecated * @param string|array $target filename or directory * @param boolean $force force */