xref: /PHP-7.3/Zend/tests/bug70987.phpt (revision ded3d984)
1--TEST--
2Bug #70987 (static::class within Closure::call() causes segfault)
3--FILE--
4<?php
5
6class foo {}
7$bar = function () {
8   return static::class;
9};
10
11var_dump($bar->call(new foo));
12
13?>
14--EXPECT--
15string(3) "foo"
16