mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
16 lines
216 B
PHP
16 lines
216 B
PHP
--TEST--
|
|
Bug #70987 (static::class within Closure::call() causes segfault)
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {}
|
|
$bar = function () {
|
|
return static::class;
|
|
};
|
|
|
|
var_dump($bar->call(new foo));
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(3) "foo"
|