}
/* }}} */
-/* {{{ proto public int ReflectionProperty::setAccesible() U
+/* {{{ proto public int ReflectionProperty::setAccessible() U
Sets whether non-public properties can be requested */
-ZEND_METHOD(reflection_property, setAccesible)
+ZEND_METHOD(reflection_property, setAccessible)
{
reflection_object *intern;
property_reference *ref;
ZEND_END_ARG_INFO()
static
-ZEND_BEGIN_ARG_INFO(arginfo_reflection_property_setAccesible, 0)
+ZEND_BEGIN_ARG_INFO(arginfo_reflection_property_setAccessible, 0)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()
ZEND_ME(reflection_property, getDefaultValue, NULL, 0)
ZEND_ME(reflection_property, getDeclaringClass, NULL, 0)
ZEND_ME(reflection_property, getDocComment, NULL, 0)
- ZEND_ME(reflection_property, setAccesible, arginfo_reflection_property_setAccesible, 0)
+ ZEND_ME(reflection_property, setAccessible, arginfo_reflection_property_setAccessible, 0)
{NULL, NULL, NULL}
};
--TEST--
-Test ReflectionProperty::setAccesible().
+Test ReflectionProperty::setAccessible().
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
echo $exc->getMessage(), "\n";
}
-$propInfo->setAccesible(true);
+$propInfo->setAccessible(true);
var_dump($propInfo->getValue($instance));
-$propInfo->setAccesible(false);
+$propInfo->setAccessible(false);
try {
var_dump($propInfo->getValue($instance));
}