. Added SplDoublyLinkedList, SplStack, SplQueue classes. (Etienne)
. Added FilesystemIterator. (Marcus)
. Added GlobIterator. (Marcus)
-- Add the ReflectionProperty::setAccesible() method that allows non-public
+- Add the ReflectionProperty::setAccessible() method that allows non-public
property's values to be read through ::getValue().
- Added ability to use Traversable objects instead of plain arrays in ext/soap.
(Joshua Reese, Dmitry)
}
/* }}} */
-/* {{{ proto public int ReflectionProperty::setAccesible()
+/* {{{ proto public int ReflectionProperty::setAccessible()
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, getModifiers, 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));
}