Annotation of embedaddon/php/Zend/tests/bug50146.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #50146 (property_exists: Closure object cannot have properties)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $obj = function(){};
                      7: 
                      8: var_dump(property_exists($obj,'foo'));
                      9: 
                     10: $ref = new ReflectionObject($obj);
                     11: var_dump($ref->hasProperty('b'));
                     12: 
                     13: var_dump(isset($obj->a));
                     14: 
                     15: ?>
                     16: --EXPECTF--
                     17: bool(false)
                     18: bool(false)
                     19: 
                     20: Catchable fatal error: Closure object cannot have properties in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>