summaryrefslogtreecommitdiff
path: root/Zend/tests/bug76752.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2018-08-17 12:19:31 +0800
committerXinchen Hui <laruence@gmail.com>2018-08-17 12:19:31 +0800
commitfd463a9a6078074f8f648982b42bdd14423fb614 (patch)
treee31de8063ce519cda772cc314263131705215104 /Zend/tests/bug76752.phpt
parentae926d89619a034f89bdda5c9f70d8ce59219050 (diff)
downloadphp-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.phpt11
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"