xref: /PHP-8.4/ext/standard/tests/array/bug25758.phpt (revision f8d79582)
1--TEST--
2Bug #25758 (var_export does not escape ' & \ inside array keys)
3--FILE--
4<?php
5    $a = array ("quote'" => array("quote'"));
6    echo var_export($a, true);
7?>
8--EXPECT--
9array (
10  'quote\'' =>
11  array (
12    0 => 'quote\'',
13  ),
14)
15