summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug70111.phpt
blob: 465d0ee848bcdf9e57130b35024a8d291f3b0b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"