xref: /PHP-8.4/ext/standard/tests/serialize/006.phpt (revision f8d79582)
1--TEST--
2serialize()/unserialize() with exotic letters
3--FILE--
4<?php
5    $������ = array('������' => '������');
6
7    class �berK��li��
8    {
9        public $��������ber = '������';
10    }
11
12    $foo = new �berk��li��();
13
14    var_dump(serialize($foo));
15    var_dump(unserialize(serialize($foo)));
16    var_dump(serialize($������));
17    var_dump(unserialize(serialize($������)));
18?>
19--EXPECT--
20string(55) "O:11:"�berK��li��":1:{s:11:"��������ber";s:6:"������";}"
21object(�berK��li��)#2 (1) {
22  ["��������ber"]=>
23  string(6) "������"
24}
25string(32) "a:1:{s:6:"������";s:6:"������";}"
26array(1) {
27  ["������"]=>
28  string(6) "������"
29}
30