Page MenuHomePhabricator

D10623.id.diff
No OneTemporary

D10623.id.diff

diff --git a/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
@@ -72,7 +72,7 @@
}
}
- $ok = mysql_set_charset('utf8mb4', $conn);
+ $ok = @mysql_set_charset('utf8mb4', $conn);
if (!$ok) {
mysql_set_charset('utf8', $conn);
}
diff --git a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
@@ -67,7 +67,7 @@
"#{$errno}: {$error}.", $errno);
}
- $ok = $conn->set_charset('utf8mb4');
+ $ok = @$conn->set_charset('utf8mb4');
if (!$ok) {
$ok = $conn->set_charset('utf8');
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 5:11 PM (18 h, 50 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7042030
Default Alt Text
D10623.id.diff (1 KB)

Event Timeline