Annotation of embedaddon/php/ext/standard/tests/array/bug26458.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #26458 (var_dump(), var_export() & debug_zval_dump() are not binary safe for array keys)
3: --FILE--
4: <?php
5: $test = array("A\x00B" => "Hello world");
6: var_dump($test);
7: var_export($test);
8: debug_zval_dump($test);
9: ?>
10: --EXPECT--
11: array(1) {
12: ["A B"]=>
13: string(11) "Hello world"
14: }
15: array (
16: 'A' . "\0" . 'B' => 'Hello world',
17: )array(1) refcount(2){
18: ["A B"]=>
19: string(11) "Hello world" refcount(1)
20: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>