From 502cfddf28c4a01d7f2d23f35ff6244ae7428103 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 26 Oct 2017 14:12:08 +0300 Subject: Backport tests --- Zend/tests/bug75420.7.phpt | 17 +++++++++++++++++ Zend/tests/bug75420.8.phpt | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Zend/tests/bug75420.7.phpt create mode 100644 Zend/tests/bug75420.8.phpt diff --git a/Zend/tests/bug75420.7.phpt b/Zend/tests/bug75420.7.phpt new file mode 100644 index 0000000000..0b9743a880 --- /dev/null +++ b/Zend/tests/bug75420.7.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #75420.7 (Indirect modification of magic method argument) +--FILE-- +$name = 1; +var_dump($name); +?> +--EXPECT-- +string(6) "foofoo" +int(24) diff --git a/Zend/tests/bug75420.8.phpt b/Zend/tests/bug75420.8.phpt new file mode 100644 index 0000000000..2d57c8b1cb --- /dev/null +++ b/Zend/tests/bug75420.8.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #75420.8 (Indirect modification of magic method argument) +--FILE-- +$name = 1; +var_dump($obj); +?> +--EXPECT-- +object(Test)#1 (0) { +} +int(24) -- cgit v1.2.1