dis-bench / src /php /php-src /ext /opcache /tests /bug70111.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
284 Bytes
--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
--EXTENSIONS--
opcache
--FILE--
<?php
var_dump(foo());
function foo() : string {
return (string) 42;
}
?>
--EXPECT--
string(2) "42"