Nicolas Grekas

Results 382 comments of Nicolas Grekas

Hi @rpdata-corelogic, Where can you see this error? Is that in the log file? This is triggered because the BlackfireProbe finds no agent to connect to.

Yes, this is the perfect place for a polyfill :) PR welcome :)

Would be great :) and you're right, the map is optimized for normalization. We need to ship a separate map to be able to provide the intermediate decompositions.

Sure, the script is here: https://github.com/tchwork/utf8/blob/master/src/Patchwork/Utf8/Compiler.php

Note that the compilation script is now part of the repo: https://github.com/symfony/polyfill/blob/master/tests/Compiler.php

Would you agree with considering that once #369 is merged, this issue can be closed? Aka we don't provide the most recent regexp to ppl that use older PCRE versions?...

PHP 7.3 uses full case folding. This is implemented in tchwork/utf8, so we could borrow [the map](https://github.com/tchwork/utf8/blob/master/src/Patchwork/Utf8/data/caseFolding_full.ser) from there: https://github.com/tchwork/utf8/blob/30ec6451aec7d2536f0af8fe535f70c764f2c47a/src/Patchwork/Utf8.php#L168-L170 Up for a PR?

Crazy idea: implement MT19937 by looking at https://en.wikipedia.org/wiki/Mersenne_Twister#Pseudocode and/or php-src and/or by leveraging https://github.com/ruafozy/php-mersenne-twister/ (but as optional dep if we go this way)

If we add a test case (as you, I don't know which one exactly), it should with the native one and with the polyfilled one (when curl is not installed),...