Package: php-gettext
Version: 1.0.11-3
Severity: important
Dear Maintainer,
When using php-gettext with php7 I get deprecated warnings such as these:
Deprecated: Methods with the same name as their class will not be constructors
in a future version of PHP; StringReader has a deprecated constructor in
/usr/share/php/php-gettext/streams.php on line 48
Deprecated: Methods with the same name as their class will not be constructors
in a future version of PHP; FileReader has a deprecated constructor in
/usr/share/php/php-gettext/streams.php on line 84
Deprecated: Methods with the same name as their class will not be constructors
in a future version of PHP; CachedFileReader has a deprecated constructor in
/usr/share/php/php-gettext/streams.php on line 145
Deprecated: Methods with the same name as their class will not be constructors
in a future version of PHP; gettext_reader has a deprecated constructor in
/usr/share/php/php-gettext/gettext.php on line 36
I believe these can be fixed by changing the constructors from:
class CachedFileReader extends StringReader {
function CachedFileReader($filename) {
to
class CachedFileReader extends StringReader {
function __construct ($filename) {
This bug has previously been reported in Ubuntu some time back:
https://bugs.launchpad.net/php-gettext/+bug/1522900
/Pehr Söderman
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-22-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages php-gettext depends on:
ii php-php-gettext 1.0.11-3
php-gettext recommends no packages.
php-gettext suggests no packages.
-- no debconf information