-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/standard/tests/array/
File Upload :
Current File : //usr/src/php/ext/standard/tests/array/bug26458.phpt

--TEST--
Bug #26458 (var_dump(), var_export() & debug_zval_dump() are not binary safe for array keys)
--FILE--
<?php
$test = array("A\x00B" => "Hello world");
var_dump($test);
var_export($test);
debug_zval_dump($test);
?>
--EXPECT--
array(1) {
  ["AB"]=>
  string(11) "Hello world"
}
array (
  'A' . "\0" . 'B' => 'Hello world',
)array(1) refcount(2){
  ["AB"]=>
  string(11) "Hello world" refcount(1)
}

Copyright © 2017 || Recoded By Mr.Bumblebee