diff options
Diffstat (limited to 'ext/opcache/tests/bug70111.phpt')
-rw-r--r-- | ext/opcache/tests/bug70111.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug70111.phpt b/ext/opcache/tests/bug70111.phpt new file mode 100644 index 0000000000..465d0ee848 --- /dev/null +++ b/ext/opcache/tests/bug70111.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #70111 (Segfault when a function uses both an explicit return type and an explicit cast) +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php + +var_dump(foo()); + +function foo() : string { + return (string) 42; +} +?> +--EXPECT-- +string(2) "42" |