From: Dmitry Stogov Date: Thu, 23 Jun 2005 08:24:42 +0000 (+0000) Subject: Test for bug #27268. It is fixed in HEAD but not in PHP_5_0. X-Git-Tag: php-5.0.5RC1~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4782e05caffcda27309dc101f351d5a1b9aa2d8;p=php Test for bug #27268. It is fixed in HEAD but not in PHP_5_0. --- 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 + ) + +)