mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
16 lines
217 B
PHP
16 lines
217 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));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
string(3) "foo"
|