]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Tue, 3 Oct 2006 21:18:43 +0000 (21:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 3 Oct 2006 21:18:43 +0000 (21:18 +0000)
ext/pcre/tests/grep.phpt
ext/pcre/tests/grep2.phpt

index d3d9032e49fc75385144811e108e6cda212a9c58..d3fe63131278fe4c1f06358b9f085391b8963431 100644 (file)
@@ -21,3 +21,16 @@ array(2) {
   [3]=>
   string(3) "h20"
 }
+--UEXPECT--
+array(2) {
+  [1]=>
+  unicode(1) "1"
+  [2]=>
+  unicode(2) "q6"
+}
+array(2) {
+  [0]=>
+  unicode(1) "a"
+  [3]=>
+  unicode(3) "h20"
+}
index fc92d507ff4753916677e6b23257771993f9fffe..6ea0116a38ace0ba68587c4d6c1155c2c8a6c481 100644 (file)
@@ -54,15 +54,15 @@ Warning: preg_grep(): Compilation failed: nothing to repeat at offset 0 in %sgre
 bool(false)
 array(3) {
   [5]=>
-  string(1) "a"
+  unicode(1) "a"
   [u"xyz"]=>
-  string(2) "q6"
+  unicode(2) "q6"
   [6]=>
-  string(3) "h20"
+  unicode(3) "h20"
 }
 array(1) {
   [u"x"]=>
-  string(1) "1"
+  unicode(1) "1"
 }
 bool(true)
 array(0) {