mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
14 lines
228 B
PHP
14 lines
228 B
PHP
--TEST--
|
|
var_export() and objects with numeric indexes properties
|
|
--FILE--
|
|
<?php
|
|
$a = (object) array (1, 3, "foo" => "bar");
|
|
var_export($a);
|
|
?>
|
|
--EXPECT--
|
|
stdClass::__set_state(array(
|
|
0 => 1,
|
|
1 => 3,
|
|
'foo' => 'bar',
|
|
))
|