Debian Patches

Status for php-gettext/1.0.12-8

Patch Description Author Forwarded Bugs Origin Last update
0001-fix-constructors.patch Fix deprecated constructors

=== modified file 'gettext.php'
Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org> no debian 2020-11-18
0002-Use-custom-parser-for-parsing-plural-expressions-ins.patch Use custom parser for parsing plural expressions instead of eval()
- A simple operator-precedence parser that prioritizes simplicity and
readability. Avoid using eval() for evaluating plural expressions.
- Fixes CVE-2016-6175.
- Fixes upstream bug https://bugs.launchpad.net/php-gettext/+bug/1606184
- Fixes Debian bug https://bugs.debian.org/851771

- Grammar for parsing code is same as the grammar for GNU gettext library:
http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y

- Extensive tests for various locales with help from Unicode's plurals rules.
Tests for invalid syntax and expression parsing.
Sunil Mohan Adapa <sunil@medhas.org> no 2020-06-17
0003-Adopt-tests-to-run-recent-version-of-phpunit.patch Adopt tests to run recent version of phpunit
Tests case be executed as 'make check' or as 'phpunit tests/'.
Sunil Mohan Adapa <sunil@medhas.org> no 2020-06-17
0004-Adapt-to-recent-version-of-PHPUnit-9.patch Adapt to recent version of PHPUnit (9) James Valleroy <jvalleroy@mailbox.org> no 2020-12-27
0005-Use-default_charset-instead-of-mbstring.internal_enc.patch Use default_charset instead of mbstring.internal_encoding James Valleroy <jvalleroy@mailbox.org> no 2022-01-08
0006-Support-phpunit10.patch Support phpunit 10 Athos Ribeiro <athoscribeiro@gmail.com> no debian 2023-07-02
0007-Fix-PHP-8-deprecations.patch Fix deprecations and an uninitialized position on PHP 8 Use {$var} instead of ${var} in string interpolation, deprecated since PHP
8.2, and initialize the read position in CachedFileReader, which made
substr() receive null as offset (deprecated since PHP 8.1).
no debian
0008-Use-PHPUnit-attributes-for-data-providers.patch Use PHPUnit attributes for data providers Doc-comment metadata support was removed in PHPUnit 12, so the data
providers were never wired up and the tests failed with ArgumentCountError.
no debian
0009-Keep-the-PHPUnit-cache-out-of-the-system-directories.patch Keep the PHPUnit cache out of the system directories Without a configuration file PHPUnit writes its cache next to the phpunit
executable, which is not writable during the build or in autopkgtest and
produces a PHP warning on stderr. Use a cache directory in the source tree
instead, which debian/clean removes.
not-needed debian
0010-Declare-the-error-property-of-the-stream-readers.patch Declare the error property of the stream readers FileReader and CachedFileReader set $this->error when the file is missing or
unreadable, which creates a dynamic property, deprecated since PHP 8.2. The
property has no default value because gettext_reader treats any reader with
error set as unusable and falls back to the untranslated strings.
no

All known versions for source package 'php-gettext'

Links