diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-02-10 14:24:44 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-02-10 14:25:29 +0800 |
commit | 0b7fa040e9e83dedbbd4cb5dd6ab0f5aa3f840c9 (patch) | |
tree | 0b7fb1faf4625d11bc8b8d87ecc238b54ce486fe /ext/opcache/tests | |
parent | f352c50026e7b9e6116def1c201455f376e5c1a9 (diff) | |
parent | 185304a61e08c07228e718139ef5284a7021bbbd (diff) | |
download | php-git-0b7fa040e9e83dedbbd4cb5dd6ab0f5aa3f840c9.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #74019 (Segfault with list)
Diffstat (limited to 'ext/opcache/tests')
-rw-r--r-- | ext/opcache/tests/bug74019.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug74019.phpt b/ext/opcache/tests/bug74019.phpt new file mode 100644 index 0000000000..210e223c82 --- /dev/null +++ b/ext/opcache/tests/bug74019.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #74019 (Segfault with list) +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php + +class A { + public function seg() { + list($a, $b) = A::CONSTS; + var_dump($a, $b); + return; + } + const CONSTS = [1, 2]; +} + +$a = new A; +$a->seg(); +?> +--EXPECT-- +int(1) +int(2) |