dis-bench / src /php /php-src /ext /opcache /tests /opt /gh8140b.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
227 Bytes
--TEST--
GH-8140 (Wrong first class callable by name optimization)
--FILE--
<?php
$mycallable = greeter(...);
function greeter(string $name) {
echo "Hello, {$name}!";
}
$mycallable("world");
?>
--EXPECT--
Hello, world!