diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-07-06 20:46:43 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-07-06 20:46:43 +0300 |
commit | 023b81259325c00012c0f703976c082be72dc5b9 (patch) | |
tree | 4906b4f9121796f32e453456e6bfe53f7cecb221 /Zend/tests/bug72543_3.phpt | |
parent | cc89a46a89b5fd4e75bfe9d35876ae3773d1b559 (diff) | |
download | php-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.phpt | 12 |
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) |