Test: /ext/pcre/tests/bug42298.phpt - Version 5.3.19        

Bug #42298 preg_match with /u gives different results for \S\S and \S{2}
Submitted: 2007-08-14 16:46:48 Modified: 2007-09-01 17:54:12
From: matthew-php Assigned: nlopess
Status: Closed Package: PCRE related
PHP Version: 5CVS-2007-08-14 (snap) OS: Windows XP

There are 2 different diffs reported by users for this test.

Count Diff
4 (80%)
012+ array(3) {
012- array(2) {
014+ string(1) "A"
014- string(3) "A£"
016+ string(0) ""
017+ [2]=>
018+ string(2) "�B"
016- string(2) "BC"
028- array(1) {
030+ array(2) {
030- string(4) "€ "
032+ string(0) ""
033+ [1]=>
034+ string(3) "�� "
1 (20%)
001+ Warning: preg_match_all(): Compilation failed: unknown option bit(s) set at offset 0 in %s/bug42298.php on line 3
002+ NULL
003+
004+ Warning: preg_match_all(): Compilation failed: unknown option bit(s) set at offset 0 in %s/bug42298.php on line 4
005+ NULL
006+
007+ Warning: preg_match_all(): Compilation failed: unknown option bit(s) set at offset 0 in %s/bug42298.php on line 7
008+ NULL
009+
010+ Warning: preg_match_all(): Compilation failed: unknown option bit(s) set at offset 0 in %s/bug42298.php on line 8
011+ NULL
001- array(1) {
002- [0]=>
003- array(2) {
004- [0]=>
005- string(3) "A£"
006- [1]=>
007- string(2) "BC"
008- }
009- }
010- array(1) {
011- [0]=>
012- array(2) {
013- [0]=>
014- string(3) "A£"
015- [1]=>
016- string(2) "BC"
017- }
018- }
019- array(1) {
020- [0]=>
021- array(1) {
022- [0]=>
023- string(4) "€ "
024- }
025- }
026- array(1) {
027- [0]=>
028- array(1) {
029- [0]=>
030- string(4) "€ "
031- }
032- }