mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-08-05 14:42:09 -07:00
fix some php8.0 showstoppers
This commit is contained in:
@@ -55,7 +55,7 @@ namespace {
|
||||
|
||||
$hash = sha1($hostname . $username . $flags);
|
||||
/* persistent connections start with p: */
|
||||
if ($hostname{1} !== ':' && isset(\Dshafik\MySQL::$connections[$hash])) {
|
||||
if ($hostname[1] !== ':' && isset(\Dshafik\MySQL::$connections[$hash])) {
|
||||
\Dshafik\MySQL::$last_connection = \Dshafik\MySQL::$connections[$hash]['conn'];
|
||||
\Dshafik\MySQL::$connections[$hash]['refcount'] += 1;
|
||||
return \Dshafik\MySQL::$connections[$hash]['conn'];
|
||||
@@ -729,7 +729,7 @@ namespace Dshafik {
|
||||
{
|
||||
$escapedString = '';
|
||||
for ($i = 0, $max = strlen($unescapedString); $i < $max; $i++) {
|
||||
$escapedString .= self::escapeChar($unescapedString{$i});
|
||||
$escapedString .= self::escapeChar($unescapedString[$i]);
|
||||
}
|
||||
|
||||
return $escapedString;
|
||||
|
Reference in New Issue
Block a user