[pkg-php-pear] Bug#976135: Breaks tt-rss

Sunil Mohan Adapa sunil at medhas.org
Thu Dec 3 01:56:00 GMT 2020


tag 976135 + patch
thanks

On Mon, 30 Nov 2020 09:45:48 +0100 Andrey Rahmatullin <wrar at debian.org>
wrote:
[...]
> 
> PHP Fatal error:  Uncaught Error: Call to a member function evaluate() on null in /usr/share/php/php-php-gettext/gettext.php:325

This is a silly error I made in a patch to fix the security issue with
plurals evaluation. I never caught the error as I didn't test
non-English locales. A patch is now available for merge.

https://salsa.debian.org/php-team/pear/php-gettext/-/merge_requests/2

As a workaround to the issue, either use English language until this
issue is fixed or modify the file
/usr/share/php/php-php-gettext/gettext.php line 300

from

    if ($this->pluralheader !== NULL) {

to

    if ($this->pluralheader === NULL) {

Thanks,

-- 
Sunil



More information about the pkg-php-pear mailing list