mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
he braces style is deprecated as of PHP 6
git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
* @todo make sure the replacements are called correctly
|
||||
* already done: strtolower, strtoupper, ucfirst, str_split, strrpos, strlen (hopefully!), strpos
|
||||
* already done: strtolower, strtoupper, ucfirst, str_split, strrpos, strlen (hopefully!), strpos, substr
|
||||
* remaining: clean_username, htmlentities (no longer needed for internal data?), htmlspecialchars (using charset), html_entity_decode (own function to reverse htmlspecialchars and not htmlentities)
|
||||
* substr, strspn, chr, ord
|
||||
* strspn, chr, ord
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -226,13 +226,7 @@ if (extension_loaded('mbstring'))
|
||||
|
||||
/**
|
||||
* UTF-8 aware alternative to substr
|
||||
* Return part of a string given character offset (and optionally length)
|
||||
*
|
||||
* @author Harry Fuecks
|
||||
* @param string
|
||||
* @param integer number of UTF-8 characters offset (from left)
|
||||
* @param integer (optional) length in UTF-8 characters from offset
|
||||
* @return mixed string or FALSE if failure
|
||||
* @ignore
|
||||
*/
|
||||
function utf8_substr($str, $offset, $length = null)
|
||||
{
|
||||
@@ -248,9 +242,7 @@ if (extension_loaded('mbstring'))
|
||||
|
||||
/**
|
||||
* Return the length (in characters) of a UTF-8 string
|
||||
*
|
||||
* @param string $text UTF-8 string
|
||||
* @return integer Length (in chars) of given string
|
||||
* @ignore
|
||||
*/
|
||||
function utf8_strlen($text)
|
||||
{
|
||||
|
Reference in New Issue
Block a user