summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70987.phpt
blob: d31a1d2c6e854d9c66325819bf0c0052ee685224 (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));

?>
--EXPECTF--
string(3) "foo"