xref: /PHP-8.4/ext/opcache/tests/bug70111.phpt (revision e9f783fc)
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--EXTENSIONS--
7opcache
8--FILE--
9<?php
10
11var_dump(foo());
12
13function foo() : string {
14  return (string) 42;
15}
16?>
17--EXPECT--
18string(2) "42"
19