diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-22 09:34:35 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-22 09:35:38 +0200 |
commit | ff4b0ce0e8d582e4b8f6c44270a77f511d28bacd (patch) | |
tree | 62590e7dcccfdffb7feb9f94584a43627b51c61a /ext/opcache/tests | |
parent | d6c0c5ef8e90b26b8cf1632be1baa379405d0ba9 (diff) | |
download | php-git-ff4b0ce0e8d582e4b8f6c44270a77f511d28bacd.tar.gz |
Fix bug #78034
Don't def non-cv variables in assign_obj_ref data operand.
Diffstat (limited to 'ext/opcache/tests')
-rw-r--r-- | ext/opcache/tests/bug78034.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug78034.phpt b/ext/opcache/tests/bug78034.phpt new file mode 100644 index 0000000000..ca9cd4ec07 --- /dev/null +++ b/ext/opcache/tests/bug78034.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #78034: "pecl" tool fails with abort assertion in zend_ssa.c +--FILE-- +<?php + +function &ref() {} + +class Test { + function method($bool) { + if (!$bool) { + $this->foo = &ref(); + } + + $this->foo = &ref(); + } +} + +?> +===DONE=== +--EXPECT-- +===DONE=== |