summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug25758.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/bug25758.phpt')
-rw-r--r--ext/standard/tests/array/bug25758.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug25758.phpt b/ext/standard/tests/array/bug25758.phpt
new file mode 100644
index 0000000..ff97d2e
--- /dev/null
+++ b/ext/standard/tests/array/bug25758.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #25758 (var_export does not escape ' & \ inside array keys)
+--FILE--
+<?php
+ $a = array ("quote'" => array("quote'"));
+ echo var_export($a, true);
+?>
+--EXPECT--
+array (
+ 'quote\'' =>
+ array (
+ 0 => 'quote\'',
+ ),
+)