22 Commits

Author SHA1 Message Date
onli
7f3d7e4017 php8 compat: Don't redefine SQL_CHARSET_INIT 2021-04-19 17:19:44 +02:00
onli
0def9e991f MySQL: Set charse tto ut8mb4, needed for some versions (#394) 2020-05-28 11:59:12 +02:00
onli
de29be7287 Drop unused is_utf8 variable 2020-03-28 13:37:12 +01:00
onli
b718cf7726 Only set mysqli_set_charset when covnersion is enabled
This restores the behaviour from before the move to utf8mb4 and should help legacy blogs not having charset issues, that went from latin1 to utf8 to now utf8mb4
2020-03-28 13:31:49 +01:00
onli
c6800d5fc3 minor: explain serendipity_utf8mb4_ready in doccomment 2020-03-22 23:20:08 +01:00
onli
3ac81b91ca Reworked version and function requirement for utf8mb4 (#394) 2020-03-22 23:13:15 +01:00
onli
8b27a56209 Raise mysql requirements for utf8mb4 to 5.7/10.0.2
utf8mb4 did not work on a test server with large prefix (=not 3000 byte index limit, only 1000) on Depian 9/mariadb 10.1.44, because the row format was not barracuda (by default?)
2020-03-22 20:44:11 +01:00
onli
b15a453165 Use InnoDB and utf8mb4 on current mysql databases
For new installations only so far
2020-03-22 13:15:32 +01:00
klemens
5a95db314a spelling fixes 2017-04-06 22:26:07 +02:00
Ian
90eed2d001 typos and minors 2015-12-01 12:12:01 +01:00
Ian
e6cab58414 change SET NAMES to mysqli_set_charset and fix a bug in 2cd condition 2015-07-09 12:33:31 +02:00
Ian
c6031dc1dc remove $Ids$ 2015-07-03 17:18:23 +02:00
Ian
12325943a1 silence Constant SQL_CHARSET_INIT already defined notices 2015-01-11 15:27:30 +01:00
onli
92afc37753 Introduce serendipity_specialchars-wrapper for encoding bug (#236)
PHP 5.4 sets UTF-8 as the default for htmlspecialchars, htmlentities and html_entity_decode. The first two will echo an empty string when given a string with umlauts. This commits introduces serendipity_specialchar-wrapper that are meant to be a temporary solution for the s9y-core until PHP 5.6 fixed the bug, so the native charset option of s9y continues to work.
2014-11-23 23:41:08 +01:00
Garvin Hicking
b62c6072ed mysql, use myisam 2012-04-10 22:35:40 +02:00
Garvin Hicking
70b1288890 improve code docs 2011-01-08 22:31:20 +00:00
Garvin Hicking
53159f390f * Use "Longtext" instead of "text" for new installations on blog entry
body and extended body inside database tables. (garvinhicking)
2010-01-14 09:21:07 +00:00
Garvin Hicking
ee102b4402 * Removed "static" db layer typelist to prevent accidental over-
writes of referenced return values (garvinhicking)
2009-07-27 09:52:13 +00:00
Garvin Hicking
6ea572211b Patch by hanno boeck 2008-03-25 12:39:55 +00:00
Garvin Hicking
a8f57711a9 Small code cleanup by Falk Doering:
- PHP6 forward compatibility on accessing strings
- Better indenting, other cleanups on the plugin API file
2007-07-17 11:31:20 +00:00
Garvin Hicking
e33b0b27af Allow non-standard port specification 2007-03-30 10:02:05 +00:00
Garvin Hicking
80e14346a5 Also support "last X" REST interface 2006-08-02 10:07:34 +00:00