mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Fix deprecation notices in PHP 8.2 #2064
This commit is contained in:
parent
8e2c4b3ef9
commit
c07efe7905
7 changed files with 15 additions and 14 deletions
|
|
@ -257,7 +257,7 @@ function escape_dqstr($str)
|
|||
*/
|
||||
function explode_with_escape($delimiter, $str, $limit = 0, $escape_char = '\\')
|
||||
{
|
||||
if ($limit < 1) $limit = null;
|
||||
if ($limit < 1) $limit = 0;
|
||||
$result = array();
|
||||
$split = preg_split('/(?<!' . preg_quote($escape_char, '/') . ')' . preg_quote($delimiter, '/') . '/', $str, $limit);
|
||||
foreach ($split as $piece)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue