oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
821 stars 25 forks source link

Transliterator (Intl) broken in Debian Stretch #1165

Open DennisBirkholz opened 5 years ago

DennisBirkholz commented 5 years ago

Unsupported distributions

Describe the bug A Transliterator can not be created when using the php7.0-intl version provided on packages.sury.org. The version from the Debian Stretch repository does not have this problem. The following error is encountered: transliterator_create_from_rules: unable to create ICU transliterator from rules (no parse error)

To Reproduce Run the following PHP code with php7.0-intl enabled:

<?php
ini_set('intl.use_exceptions', 1);
var_dump(Transliterator::createFromRules(':: Any-de_DE; :: Latin-ASCII;'));

Expected behavior A working Transliterator (output with version from Stretch):

object(Transliterator)#1 (1) {
  ["id"]=>
  string(13) "RulesTransPHP"
}

Distribution (please complete the following information):

Package(s) (please complete the following information):

php7.0-intl:
  Installed: 7.0.33-7+0~20190503101027.13+stretch~1.gbp26f991
  Candidate: 7.0.33-7+0~20190503101027.13+stretch~1.gbp26f991
  Version table:
 *** 7.0.33-7+0~20190503101027.13+stretch~1.gbp26f991 500
        500 https://packages.sury.org/php stretch/main amd64 Packages
        100 /var/lib/dpkg/status
     7.0.33-0+deb9u3 500
        500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

libicu57:
  Installed: 57.1-6+deb9u2
  Candidate: 57.1-6+deb9u2
  Version table:
 *** 57.1-6+deb9u2 500
        500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
        100 /var/lib/dpkg/status

libicu64:
  Installed: 64.1-0.1+0~20190410090943.5+stretch~1.gbp38f694
  Candidate: 64.1-0.1+0~20190410090943.5+stretch~1.gbp38f694
  Version table:
 *** 64.1-0.1+0~20190410090943.5+stretch~1.gbp38f694 500
        500 https://packages.sury.org/php stretch/main amd64 Packages
        100 /var/lib/dpkg/status

Additional context As seen above I have two versions of libicu installed. Removing libicu57 was not possible for me without making the host unusable.

oerdnj commented 1 year ago

Debian Stretch is no longer supported in the open repository, so I'm just closing this.