From cf0a0f0967415645e521914e6ed2bc1bebdd5653 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 4 Dec 2002 17:01:07 +0000 Subject: [PATCH] Added a test for bug #12776 --- ext/standard/tests/array/bug12776.phpt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ext/standard/tests/array/bug12776.phpt diff --git a/ext/standard/tests/array/bug12776.phpt b/ext/standard/tests/array/bug12776.phpt new file mode 100644 index 00000000000..54c6f6fceb4 --- /dev/null +++ b/ext/standard/tests/array/bug12776.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #12776 (array_walk crash) +--FILE-- +'v'); +array_walk($arr,'test'); + +print "First value: ".$globalArray[0]; + +print "\nDone\n"; + +?> +--EXPECT-- +val: v; key: k +First value: k +Done