xref: /PHP-7.3/ext/opcache/tests/bug70111.phpt (revision 3e479ef4)
1--TEST--
2Bug #70111 (Segfault when a function uses both an explicit return type and an explicit cast)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11var_dump(foo());
12
13function foo() : string {
14  return (string) 42;
15}
16?>
17--EXPECT--
18string(2) "42"
19