summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/var_export_basic9.phpt
blob: e57d7c8cdb155e3718d446a3dfde388feeb8dbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #55082: var_export() doesn't escape properties properly
--FILE--
<?php
    $x = new stdClass();
    $x->{'\'\\'} = 7;
    echo var_export($x);
?>
--EXPECT--
(object) array(
   '\'\\' => 7,
)