xref: /PHP-8.4/Zend/tests/bug50146.phpt (revision 008bfcc7)
1--TEST--
2Bug #50146 (property_exists: Closure object cannot have properties)
3--FILE--
4<?php
5
6$obj = function(){};
7
8var_dump(property_exists($obj,'foo'));
9
10$ref = new ReflectionObject($obj);
11var_dump($ref->hasProperty('b'));
12
13var_dump(isset($obj->a));
14
15?>
16--EXPECT--
17bool(false)
18bool(false)
19bool(false)
20