mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
15 lines
298 B
PHP
15 lines
298 B
PHP
--TEST--
|
|
Reflection::getClosureThis()
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('reflection')) print 'skip';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$closure = function($param) { return "this is a closure"; };
|
|
$rf = new ReflectionFunction($closure);
|
|
var_dump($rf->getClosureThis());
|
|
echo "Done!\n";
|
|
--EXPECTF--
|
|
NULL
|
|
Done!
|