[wp-trac] [WordPress Trac] #28162: seems_utf8() fails with mbstring.func_overload enabled

WordPress Trac noreply at wordpress.org
Wed May 7 11:41:57 UTC 2014


#28162: seems_utf8() fails with mbstring.func_overload enabled
------------------------------+--------------------
 Reporter:  SergeyBiryukov    |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  Formatting        |     Version:  1.2.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------

Comment (by SergeyBiryukov):

 `utf8_uri_encode()` tests currently fail with `mbstring.func_overload`
 enabled too.
 {{{
 S:\home\wordpress\develop>phpunit
 tests/phpunit/tests/formatting/Utf8UriEncode.php
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests... To execute these, use --group ajax.
 PHPUnit 3.6.11 by Sebastian Bergmann.

 Configuration read from S:\home\wordpress\develop\phpunit.xml.dist

 FFFFF.....

 Time: 9 seconds, Memory: 24.50Mb

 There were 5 failures:

 1)
 Tests_Formatting_Utf8UriEncode::test_percent_encodes_non_reserved_characters
 with data set #0 ('章子怡', '%e7%ab%a0%e5%ad%90%e6%80%a1')
 %a1')
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'%e7%ab%a0%e5%ad%90%e6%80%a1'
 +'%e7%ab%a0'

 S:\home\wordpress\develop\tests\phpunit\tests\formatting\Utf8UriEncode.php:15
 S:\usr\local\php5\phpunit:46

 ...
 }}}

 [attachment:28162.2.patch] fixes them.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28162#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list