]> granicus.if.org Git - php/commitdiff
Add test for buf #65251
authorNikita Popov <nikic@php.net>
Sun, 8 Jan 2017 11:00:58 +0000 (12:00 +0100)
committerNikita Popov <nikic@php.net>
Sun, 8 Jan 2017 11:01:18 +0000 (12:01 +0100)
ext/standard/tests/array/bug65251.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/array/bug65251.phpt b/ext/standard/tests/array/bug65251.phpt
new file mode 100644 (file)
index 0000000..0145177
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #65251: array_merge_recursive() recursion detection broken
+--FILE--
+<?php
+
+array_merge_recursive($GLOBALS, $GLOBALS)
+
+?>
+--EXPECTF--
+Warning: array_merge_recursive(): recursion detected in %s on line %d