X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fencoding001.phpt;fp=tests%2Fencoding001.phpt;h=57f24c55238dc1861af00bd6ed1b542b31732e05;hp=0000000000000000000000000000000000000000;hb=3024b0b5a903a2bcb082b01e1787410dc9508a9d;hpb=3e70f1ceb6d5c6b0b8f305a93e3bd3495c88a0ea diff --git a/tests/encoding001.phpt b/tests/encoding001.phpt new file mode 100644 index 0000000..57f24c5 --- /dev/null +++ b/tests/encoding001.phpt @@ -0,0 +1,28 @@ +--TEST-- +encoding +--SKIPIF-- + +--FILE-- +encoding); +$c->encoding = "utf8"; +var_dump($c->encoding); +var_dump($c->exec("SELECT 'ßüpä…'")->fetchCol()); +$tmp = 12345; +$c->encoding = $tmp; +var_dump($c->encoding); +?> +DONE +--EXPECTF-- +Test +string(%d) "%s" +string(4) "UTF8" +string(10) "ßüpä…" + +Notice: Unrecognized encoding '12345' in %s on line %d +string(4) "UTF8" +DONE