summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70987.phpt
blob: 3c8dcc79c82c096ce61ac1a37cc99b8ab289783b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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"