mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
14 lines
281 B
PHP
14 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)
|