xref: /PHP-7.4/ext/standard/tests/array/bug25758.phpt (revision 6f8b8ade)
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