php-gettext Depreciated Constructor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-gettext (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) Ubuntu 16.04.3 LTS
2) php-gettext: 1.0.11-2build1
3) No Error Message and smooth running was expected
4) What happened instead:
Deprecation Notice in ./../php/
Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor
Backtrace
./../php/
./libraries/
./libraries/
./index.php#12: require_
Deprecation Notice in ./../php/
Methods with the same name as their class will not be constructors in a future version of PHP; FileReader has a deprecated constructor
Backtrace
./../php/
./libraries/
./libraries/
./index.php#12: require_
Deprecation Notice in ./../php/
Methods with the same name as their class will not be constructors in a future version of PHP; CachedFileReader has a deprecated constructor
Backtrace
./../php/
./libraries/
./libraries/
./index.php#12: require_
Deprecation Notice in ./../php/
Methods with the same name as their class will not be constructors in a future version of PHP; gettext_reader has a deprecated constructor
Backtrace
./../php/
./libraries/
./libraries/
./index.php#12: require_
From what I understand, this is fixed in 1.0.12-0.1 which is included in both 17.04 and 17.10 (Beta).
However, 16.04 LTS does not have this resolution and will keep flagging depreciation errors. While this is not a critical bug, the solution is not overly difficult from what I've read:
sudo nano /usr/share/
Line 48 StringReader Error.
Go to Line 52 and change
function StringReader ($str='') {
TO
function __construct(
Line 84 FileReader Error
Go to Line 90 and change
function FileReader(
to
function __construct(
Line 145 CacheFileReader error
Go to Line 146 and change
function CachedFileReade
to
function __construct(
Using sudo nano /usr/share/
Line 36 gettext_reader { error
Go to line 101 and change
function gettext_
To
function __construct(
tags: | added: xenial |