summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72543_3.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-07-06 20:46:43 +0300
committerDmitry Stogov <dmitry@zend.com>2016-07-06 20:46:43 +0300
commit023b81259325c00012c0f703976c082be72dc5b9 (patch)
tree4906b4f9121796f32e453456e6bfe53f7cecb221 /Zend/tests/bug72543_3.phpt
parentcc89a46a89b5fd4e75bfe9d35876ae3773d1b559 (diff)
downloadphp-git-023b81259325c00012c0f703976c082be72dc5b9.tar.gz
Fixed bug #72543 (Different references behavior comparing to PHP 5)
Diffstat (limited to 'Zend/tests/bug72543_3.phpt')
-rw-r--r--Zend/tests/bug72543_3.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug72543_3.phpt b/Zend/tests/bug72543_3.phpt
new file mode 100644
index 0000000000..3835fafaa3
--- /dev/null
+++ b/Zend/tests/bug72543_3.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #72543.3 (different references behavior comparing to PHP 5)
+--FILE--
+<?php
+$x = new stdClass;
+$x->a = 1;
+$ref =& $x->a;
+unset($ref);
+var_dump($x->a + ($x->a = 2));
+?>
+--EXPECT--
+int(3)