This commit is contained in:
Arnaud Le Blanc 2009-04-24 17:14:32 +00:00
parent 30b30dda11
commit 54958dbc7c
10 changed files with 67 additions and 67 deletions

View File

@ -19,19 +19,19 @@ preg_match("/a\-{1,}/", 'a\----a', $m);
var_dump($m);
?>
--EXPECT--
string(13) "\-oh really\?"
--EXPECTF--
%string|unicode%(13) "\-oh really\?"
array(1) {
[0]=>
string(4) "a---"
%string|unicode%(4) "a---"
}
array(1) {
[0]=>
string(1) "a"
%string|unicode%(1) "a"
}
array(1) {
[0]=>
string(5) "a----"
%string|unicode%(5) "a----"
}
array(0) {
}

View File

@ -57,11 +57,11 @@ $key = var3:
bool(true)
$class1:
object(myClass)#1 (3) {
["var1"]=>
string(1) "a"
["var2"]=>
string(1) "b"
["var3"]=>
[%b|u%"var1"]=>
%unicode|string%(1) "a"
[%b|u%"var2"]=>
%unicode|string%(1) "b"
[%b|u%"var3"]=>
NULL
}
@ -70,11 +70,11 @@ $key = var3:
bool(true)
$class2:
object(myClass)#2 (3) {
["var1"]=>
string(1) "x"
["var2"]=>
string(1) "y"
["var3"]=>
string(1) "z"
[%b|u%"var1"]=>
%unicode|string%(1) "x"
[%b|u%"var2"]=>
%unicode|string%(1) "y"
[%b|u%"var3"]=>
%unicode|string%(1) "z"
}
Done

View File

@ -61,11 +61,11 @@ $key = var3:
bool(false)
$class1:
object(myClass)#1 (3) {
["var1"]=>
string(1) "a"
["var2":protected]=>
string(1) "b"
["var3":"myClass":private]=>
[%b|u%"var1"]=>
%unicode|string%(1) "a"
[%b|u%"var2":protected]=>
%unicode|string%(1) "b"
[%b|u%"var3":%b|u%"myClass":private]=>
NULL
}
@ -74,11 +74,11 @@ $key = var3:
bool(false)
$class2:
object(myClass)#2 (3) {
["var1"]=>
string(1) "x"
["var2":protected]=>
string(1) "y"
["var3":"myClass":private]=>
string(1) "z"
[%b|u%"var1"]=>
%unicode|string%(1) "x"
[%b|u%"var2":protected]=>
%unicode|string%(1) "y"
[%b|u%"var3":%b|u%"myClass":private]=>
%unicode|string%(1) "z"
}
Done

View File

@ -114,38 +114,38 @@ array(1) {
-- Iteration 6 --
array(4) {
[0]=>
string(3) "a "
%unicode|string%(3) "a "
[1]=>
string(5) "aaaa
%unicode|string%(5) "aaaa
"
[2]=>
string(1) "b"
%unicode|string%(1) "b"
[4]=>
string(27) "\[\]\!\@\#$\%\^\&\*\(\)\{\}"
%unicode|string%(27) "\[\]\!\@\#$\%\^\&\*\(\)\{\}"
}
-- Iteration 7 --
array(4) {
[0]=>
string(5) "a\v\f"
%unicode|string%(5) "a\v\f"
[1]=>
string(6) "aaaa\r"
%unicode|string%(6) "aaaa\r"
[2]=>
string(1) "b"
%unicode|string%(1) "b"
[4]=>
string(28) "\[\]\!\@\#\$\%\^\&\*\(\)\{\}"
%unicode|string%(28) "\[\]\!\@\#\$\%\^\&\*\(\)\{\}"
}
-- Iteration 8 --
array(3) {
["h1"]=>
string(1) "
[%b|u%"h1"]=>
%unicode|string%(1) "
"
["h2"]=>
string(88) "hello world
[%b|u%"h2"]=>
%unicode|string%(88) "hello world
The quick brown fox jumped over;
the lazy dog
This is a double quoted string"
["h3"]=>
string(88) "hello
[%b|u%"h3"]=>
%unicode|string%(88) "hello
world
1111 != 2222
heredoc
@ -154,15 +154,15 @@ double quoted string. with different white spaces"
-- Iteration 9 --
array(2) {
[1]=>
string(3) "one"
%unicode|string%(3) "one"
[2]=>
string(3) "two"
%unicode|string%(3) "two"
}
-- Iteration 10 --
array(2) {
["one"]=>
[%b|u%"one"]=>
int(1)
["two"]=>
[%b|u%"two"]=>
int(2)
}
-- Iteration 11 --
@ -176,55 +176,55 @@ array(3) {
}
-- Iteration 12 --
array(2) {
["one"]=>
string(3) "ten"
["two"]=>
string(6) "twenty"
[%b|u%"one"]=>
%unicode|string%(3) "ten"
[%b|u%"two"]=>
%unicode|string%(6) "twenty"
}
-- Iteration 13 --
array(3) {
["one"]=>
[%b|u%"one"]=>
int(1)
[2]=>
string(3) "two"
%unicode|string%(3) "two"
[4]=>
string(4) "four"
%unicode|string%(4) "four"
}
-- Iteration 14 --
array(2) {
[""]=>
string(4) "null"
["NULL"]=>
[%b|u%""]=>
%unicode|string%(4) "null"
[%b|u%"NULL"]=>
NULL
}
-- Iteration 15 --
array(4) {
[1]=>
string(4) "true"
%unicode|string%(4) "true"
[0]=>
string(5) "false"
["false"]=>
%unicode|string%(5) "false"
[%b|u%"false"]=>
bool(false)
["true"]=>
[%b|u%"true"]=>
bool(true)
}
-- Iteration 16 --
array(2) {
[""]=>
string(6) "emptys"
["emptyd"]=>
string(0) ""
[%b|u%""]=>
%unicode|string%(6) "emptys"
[%b|u%"emptyd"]=>
%unicode|string%(0) ""
}
-- Iteration 17 --
array(2) {
[1]=>
string(0) ""
%unicode|string%(0) ""
[6]=>
bool(true)
}
-- Iteration 18 --
array(3) {
[""]=>
[%b|u%""]=>
int(4)
[0]=>
int(5)

View File

@ -39,6 +39,6 @@ array(2) {
[0]=>
int(0)
[1]=>
&string(5) "hello"
&%unicode|string%(5) "hello"
}
Done

View File

@ -2,7 +2,7 @@
Bug #44929 (natsort doesn't handle leading zeros well)
--FILE--
<?php
$a = array('001','008','005','00011','03','000014','-123','0.002','00','0');
$a = array(b'001',b'008',b'005',b'00011',b'03',b'000014',b'-123',b'0.002',b'00',b'0');
natsort($a);
var_dump($a);
?>