xref: /PHP-7.2/Zend/tests/bug70987.phpt (revision 8907da99)
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--EXPECTF--
15string(3) "foo"
16