Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
ccd436a3
Commit
ccd436a3
authored
Jan 07, 2021
by
Cédric Anne
Browse files
Deprecate alternative BD connection encoding
parent
c3b757df
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
ccd436a3
...
...
@@ -3,6 +3,11 @@
The present file will list all changes made to the project; according to the
[
Keep a Changelog
](
http://keepachangelog.com/
)
project.
## [9.5.3] 2020-11-25
### Deprecated
-
Usage of alternative DB connection encoding (
`DB::$dbenc`
property).
## [9.5.2] 2020-10-07
### API changes
...
...
inc/dbmysql.class.php
View file @
ccd436a3
...
...
@@ -198,6 +198,9 @@ class DBmysql {
$this
->
connected
=
false
;
$this
->
error
=
2
;
}
else
{
if
(
isset
(
$this
->
dbenc
))
{
Toolbox
::
deprecated
(
'Usage of alternative DB connection encoding (`DB::$dbenc` property) is deprecated.'
);
}
$dbenc
=
isset
(
$this
->
dbenc
)
?
$this
->
dbenc
:
"utf8"
;
$this
->
dbh
->
set_charset
(
$dbenc
);
if
(
$dbenc
===
"utf8"
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment