mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
12 lines
206 B
PHP
12 lines
206 B
PHP
--TEST--
|
|
Bug #55082: var_export() doesn't escape properties properly
|
|
--FILE--
|
|
<?php
|
|
$x = new stdClass();
|
|
$x->{'\'\\'} = 7;
|
|
echo var_export($x);
|
|
--EXPECT--
|
|
stdClass::__set_state(array(
|
|
'\'\\' => 7,
|
|
))
|