Unicode support

This commit is contained in:
Dmitry Stogov 2005-09-26 07:23:49 +00:00
parent 12945df662
commit 1b1b864941
3 changed files with 109 additions and 0 deletions

View File

@ -43,3 +43,17 @@ array(1) {
string(5) "three"
}
}
--UEXPECT--
array(1) {
[0]=>
array(4) {
[u"id"]=>
unicode(1) "1"
[u"val1"]=>
unicode(3) "one"
[u"val2"]=>
unicode(3) "two"
[u"val3"]=>
unicode(5) "three"
}
}

View File

@ -123,3 +123,40 @@ array(3) {
===DONE===
PDODatabase::__destruct()
PDOStatementX::__destruct()
--UEXPECT--
unicode(11) "PDODatabase"
unicode(12) "PDOStatement"
===QUERY===
PDODatabase::query()
PDOStatementX::__construct()
PDOStatementX::execute()
unicode(13) "PDOStatementX"
unicode(11) "PDODatabase"
===FOREACH===
array(3) {
[u"id"]=>
unicode(2) "10"
[u"val"]=>
unicode(3) "Abc"
[u"val2"]=>
unicode(3) "zxy"
}
array(3) {
[u"id"]=>
unicode(2) "20"
[u"val"]=>
unicode(3) "Def"
[u"val2"]=>
unicode(3) "wvu"
}
array(3) {
[u"id"]=>
unicode(2) "30"
[u"val"]=>
unicode(3) "Ghi"
[u"val2"]=>
unicode(3) "tsr"
}
===DONE===
PDODatabase::__destruct()
PDOStatementX::__destruct()

View File

@ -110,3 +110,61 @@ bool(false)
string(33) "Parameter max_depth must be >= -1"
int(4)
===DONE===
--UEXPECT--
===?===
bool(false)
0: 1
0: 2
1: 31
1: 32
2: 331
3: 3321
4: 33221
0: 4
===2===
int(2)
0: 1
0: 2
1: 31
1: 32
2: 331
0: 4
===X===
bool(false)
0: 1
0: 2
1: 31
1: 32
2: 331
3: 3321
4: 33221
0: 4
===3===
int(3)
0: 1
0: 2
1: 31
1: 32
2: 331
3: 3321
0: 4
===5===
int(5)
0: 1
0: 2
1: 31
1: 32
2: 331
3: 3321
4: 33221
0: 4
===0===
int(0)
0: 1
0: 2
0: 4
===-1===
bool(false)
unicode(33) "Parameter max_depth must be >= -1"
int(4)
===DONE===