From e4782e05caffcda27309dc101f351d5a1b9aa2d8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 23 Jun 2005 08:24:42 +0000 Subject: [PATCH] Test for bug #27268. It is fixed in HEAD but not in PHP_5_0. --- Zend/tests/bug27268.phpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Zend/tests/bug27268.phpt diff --git a/Zend/tests/bug27268.phpt b/Zend/tests/bug27268.phpt new file mode 100755 index 0000000000..a86e8d0297 --- /dev/null +++ b/Zend/tests/bug27268.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #27268 (Bad references accentuated by clone) +--FILE-- +a; + } +} + +$A = new A; +$A->a = array(1); +$x = $A->getA(); +$clone = clone $A; +$clone->a = array(); +print_r($A); +?> +--EXPECT-- +A Object +( + [a] => Array + ( + [0] => 1 + ) + +) -- 2.50.1