-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/Zend/tests/
File Upload :
Current File : //usr/src/php/Zend/tests/bug50146.phpt

--TEST--
Bug #50146 (property_exists: Closure object cannot have properties)
--FILE--
<?php

$obj = function(){};

var_dump(property_exists($obj,'foo'));

$ref = new ReflectionObject($obj);
var_dump($ref->hasProperty('b'));

var_dump(isset($obj->a));

?>
--EXPECTF--
bool(false)
bool(false)

Catchable fatal error: Closure object cannot have properties in %s on line %d

Copyright © 2017 || Recoded By Mr.Bumblebee