mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Mark old, rarely used, and/or not recommended functions as deprecated
This commit is contained in:
parent
fdd3f4bc1e
commit
d93027078e
2 changed files with 18 additions and 1 deletions
|
|
@ -557,6 +557,7 @@ function tobool($input)
|
||||||
/**
|
/**
|
||||||
* Counts members of an array or an object.
|
* Counts members of an array or an object.
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param mixed $array_or_object
|
* @param mixed $array_or_object
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -705,6 +705,7 @@ function debugPrint($entry = null)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param string $type query, trigger
|
* @param string $type query, trigger
|
||||||
* @param float $elapsed_time
|
* @param float $elapsed_time
|
||||||
* @param object $obj
|
* @param object $obj
|
||||||
|
|
@ -715,6 +716,7 @@ function writeSlowlog($type, $elapsed_time, $obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param void
|
* @param void
|
||||||
*/
|
*/
|
||||||
function flushSlowlog()
|
function flushSlowlog()
|
||||||
|
|
@ -773,6 +775,7 @@ function getDestroyXeVars($vars)
|
||||||
/**
|
/**
|
||||||
* Legacy error handler
|
* Legacy error handler
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param int $errno
|
* @param int $errno
|
||||||
* @param string $errstr
|
* @param string $errstr
|
||||||
* @param string $file
|
* @param string $file
|
||||||
|
|
@ -804,12 +807,13 @@ function getNumberingPath($no, $size = 3)
|
||||||
/**
|
/**
|
||||||
* Decode the URL in Korean
|
* Decode the URL in Korean
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $str The url
|
* @param string $str The url
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function url_decode($str)
|
function url_decode($str)
|
||||||
{
|
{
|
||||||
return htmlspecialchars(utf8RawUrlDecode($str), null, 'UTF-8');
|
return escape(utf8RawUrlDecode($str));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -826,6 +830,7 @@ function removeHackTag($content)
|
||||||
/**
|
/**
|
||||||
* HTMLPurifier wrapper (Deprecated)
|
* HTMLPurifier wrapper (Deprecated)
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string &$content Target content
|
* @param string &$content Target content
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -837,6 +842,7 @@ function purifierHtml(&$content)
|
||||||
/**
|
/**
|
||||||
* Check xmp tag (Deprecated)
|
* Check xmp tag (Deprecated)
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $content Target content
|
* @param string $content Target content
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -848,6 +854,7 @@ function checkXmpTag($content)
|
||||||
/**
|
/**
|
||||||
* Block widget code (Deprecated)
|
* Block widget code (Deprecated)
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $content Taget content
|
* @param string $content Taget content
|
||||||
* @return string
|
* @return string
|
||||||
**/
|
**/
|
||||||
|
|
@ -859,6 +866,7 @@ function blockWidgetCode($content)
|
||||||
/**
|
/**
|
||||||
* Remove src hack (Deprecated)
|
* Remove src hack (Deprecated)
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param array $match
|
* @param array $match
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -870,6 +878,7 @@ function removeSrcHack($match)
|
||||||
/**
|
/**
|
||||||
* Check uploaded file (Deprecated)
|
* Check uploaded file (Deprecated)
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $file Taget file path
|
* @param string $file Taget file path
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|
@ -897,6 +906,7 @@ if(!function_exists('hexrgb'))
|
||||||
* provides backward compatibility for zero board4 which uses old_password() of mysql 4.1 earlier versions.
|
* provides backward compatibility for zero board4 which uses old_password() of mysql 4.1 earlier versions.
|
||||||
* the function implemented by referring to the source codes of password.c file in mysql
|
* the function implemented by referring to the source codes of password.c file in mysql
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $password
|
* @param string $password
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -908,6 +918,7 @@ function mysql_pre4_hash_password($password)
|
||||||
/**
|
/**
|
||||||
* Return the requested script path
|
* Return the requested script path
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function getScriptPath()
|
function getScriptPath()
|
||||||
|
|
@ -918,6 +929,7 @@ function getScriptPath()
|
||||||
/**
|
/**
|
||||||
* Return the requested script path
|
* Return the requested script path
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function getRequestUriByServerEnviroment()
|
function getRequestUriByServerEnviroment()
|
||||||
|
|
@ -930,6 +942,7 @@ function getRequestUriByServerEnviroment()
|
||||||
* Function converts an Javascript escaped string back into a string with specified charset (default is UTF-8).
|
* Function converts an Javascript escaped string back into a string with specified charset (default is UTF-8).
|
||||||
* Modified function from http://pure-essence.net/stuff/code/utf8RawUrlDecode.phps
|
* Modified function from http://pure-essence.net/stuff/code/utf8RawUrlDecode.phps
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string $source
|
* @param string $source
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -943,6 +956,7 @@ function utf8RawUrlDecode($source)
|
||||||
/**
|
/**
|
||||||
* Returns utf-8 string of given code
|
* Returns utf-8 string of given code
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param int $num
|
* @param int $num
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -981,6 +995,7 @@ function detectUTF8($string, $return_convert = FALSE, $urldecode = TRUE)
|
||||||
/**
|
/**
|
||||||
* get json encoded string of data
|
* get json encoded string of data
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param mixed $data
|
* @param mixed $data
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
@ -1042,6 +1057,7 @@ function stripEmbedTagForAdmin(&$content, $writer_member_srl)
|
||||||
/**
|
/**
|
||||||
* Require pear
|
* Require pear
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function requirePear()
|
function requirePear()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue