|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-08-02 09:29 UTC] pascal dot chevrel at free dot fr
Description: ------------ I have a test failing with PHP 5.6RC2, I don't know if it is a bug in Atoum or if it exposes a regression in the upcoming PHP 5.6 release. I put a repo online with a reduced test case exposing the bug: https://github.com/pascalchevrel/atoumbug_php5.6 I also filed a bug on Atoum: https://github.com/atoum/atoum/issues/346 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 18:00:01 2025 UTC |
yeah, I've seen it, and it depends on atoum, and it makes the work for us easier if we don't have to get ourself familiar with each and every php project to be able to find out what exactly causes the problem, I've went ahead and created a simple reproduce script based on your repo: <?php $sentence = 'Le système le style du couteau du suisse'; $words = explode(' ', $sentence); $words = array_filter($words); // filter out extra spaces $words = array_unique($words); // remove duplicate words // sort words from longest to shortest usort( $words, function ($a, $b) { return mb_strlen($b) - mb_strlen($a); } ); var_dump($words);Thanks for investigating, I see that the bug was in my code as I do have mb_internal_encoding('UTF-8') in the bootstrap file for the application but I don't have it set in the bootstrap file used in my unit tests.