File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug50146.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 8 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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

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