php-gettext depends on php-mbstring, but it is not listed as a dependency

Bug #1600612 reported by Pehr Söderman
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-gettext
Confirmed
Undecided
Unassigned
php-gettext (Debian)
Fix Released
Unknown

Bug Description

It seems to me that php-gettext depends on php-mbstring, but it is not listed as a dependency. Trying to use php-gettext without having php-mbstring installed results in the following fatal error:

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /usr/share/php/php-gettext/gettext.inc:177

This seems to be true for all versions of php-gettext in the repository.

Revision history for this message
Pehr Söderman (pehrs-7) wrote :

By the way, this is with PHP 7 on 16.04.

Changed in php-gettext (Debian):
status: Unknown → New
Richard Laager (rlaager)
Changed in php-gettext:
status: New → Confirmed
Revision history for this message
Richard Laager (rlaager) wrote :

This can be confirmed as follows on Yakkety. It will output an error about mstring.
sed "s|\.\./gettext.inc|/usr/share/php/php-gettext/gettext.inc|" \
    /usr/share/doc/php-php-gettext/examples/pigs_dropin.php | php

Attached is a debdiff which fixes the bug.

Revision history for this message
Richard Laager (rlaager) wrote :
Revision history for this message
Richard Laager (rlaager) wrote :

I attached an updated version with the "Closes" for the Debian bug.

Changed in php-gettext (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.