diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-08-17 12:19:31 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-08-17 12:19:31 +0800 |
commit | fd463a9a6078074f8f648982b42bdd14423fb614 (patch) | |
tree | e31de8063ce519cda772cc314263131705215104 /Zend/tests/bug76752.phpt | |
parent | ae926d89619a034f89bdda5c9f70d8ce59219050 (diff) | |
download | php-git-fd463a9a6078074f8f648982b42bdd14423fb614.tar.gz |
Fixed bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed).
Diffstat (limited to 'Zend/tests/bug76752.phpt')
-rw-r--r-- | Zend/tests/bug76752.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug76752.phpt b/Zend/tests/bug76752.phpt new file mode 100644 index 0000000000..dcdfeebeb9 --- /dev/null +++ b/Zend/tests/bug76752.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed) +--FILE-- +<?php +$obj = new stdClass; +$val = 'foo'; +$obj->prop = &$val; +var_dump($obj->prop ?? []); +?> +--EXPECT-- +string(3) "foo" |