mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
15 lines
281 B
PHP
15 lines
281 B
PHP
--TEST--
|
|
Closure 029: Testing lambda with instanceof operator
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(function() { } instanceof closure);
|
|
var_dump(function(&$x) { } instanceof closure);
|
|
var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|