Git Product home page Git Product logo

Comments (10)

nicolas-grekas avatar nicolas-grekas commented on August 16, 2024

Closing as the CI is green on 7.3, which means this has been fixed - correct?

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

@nicolas-grekas , I can confirm the problem for Mac. Tests fail for php 7.3.2 and pass fine for 7.1.25.
For instance, Normalizer constants values changed.

7.1.25

php > echo phpversion('intl');
1.1.0
php > var_dump((new \ReflectionClass(Normalizer::class))->getConstants());
array(9) {
  ["NONE"]=>
  int(1)
  ["FORM_D"]=>
  int(2)
  ["NFD"]=>
  int(2)
  ["FORM_KD"]=>
  int(3)
  ["NFKD"]=>
  int(3)
  ["FORM_C"]=>
  int(4)
  ["NFC"]=>
  int(4)
  ["FORM_KC"]=>
  int(5)
  ["NFKC"]=>
  int(5)
}

7.3.2

php > echo phpversion('intl');
7.3.2
php > var_dump((new \ReflectionClass(Normalizer::class))->getConstants());
array(11) {
  ["NONE"]=>
  int(2)
  ["FORM_D"]=>
  int(4)
  ["NFD"]=>
  int(4)
  ["FORM_KD"]=>
  int(8)
  ["NFKD"]=>
  int(8)
  ["FORM_C"]=>
  int(16)
  ["NFC"]=>
  int(16)
  ["FORM_KC"]=>
  int(32)
  ["NFKC"]=>
  int(32)
  ["FORM_KC_CF"]=>
  int(48)
  ["NFKC_CF"]=>
  int(48)
}

Now trying to investigate...

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

I got it.

For php < 7.3: https://github.com/php/php-src/blob/782bbe722d90d8743f84da712d709a319699bfd6/ext/intl/normalizer/normalizer.h#L24

For php 7.3: https://github.com/php/php-src/blob/3fa88e0ce0ffd9f63672afe114158a07a0204e21/ext/intl/normalizer/normalizer.h#L22

from polyfill.

legoktm avatar legoktm commented on August 16, 2024

I can still reproduce the failures on Debian unstable (PHP 7.3.2-3). I don't know why they don't fail on travis-ci.

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

@legoktm , here's my explanation.

Now if you have php 7.3 and ICU 63 like I do, then tests fail.
Travis does not update icu regularly, see symfony/symfony#14259 and travis-ci/travis-ci#3616. That's why it does not fail on 7.3 yet.

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

@nicolas-grekas , let's reopen this issue?
I am ready to try to fix it.

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on August 16, 2024

Sure, thanks!

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

@nicolas-grekas , actually PHP: nightly fails (https://travis-ci.org/symfony/polyfill/jobs/490568453) because of the ICU version, because php: nightly builds on travis checkout the latest ICU version (travis-ci/travis-ci#3616 (comment)).

So we now we know the problem and the testing tool! I will continue working on this.

from polyfill.

legoktm avatar legoktm commented on August 16, 2024

Ooh, nice find @nicolas-grekas. Thanks for working on this :-)

from polyfill.

vudaltsov avatar vudaltsov commented on August 16, 2024

@nicolas-grekas , @legoktm , I finally made tests fail. See #171

from polyfill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.