From d161f4ec8816f8a0b30a41aa2e8c4d333c6b9971 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 15 Feb 2008 12:48:13 +0000 Subject: [PATCH] - Fixed speling. --- NEWS | 2 +- ext/reflection/php_reflection.c | 8 ++++---- ...cesible.phpt => reflectionProperty_setAccessible.phpt} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename ext/reflection/tests/{reflectionProperty_setAccesible.phpt => reflectionProperty_setAccessible.phpt} (88%) diff --git a/NEWS b/NEWS index b959327552..03d2b035f4 100644 --- a/NEWS +++ b/NEWS @@ -40,7 +40,7 @@ PHP NEWS . 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) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index e3a0f1e3dc..17d9d39fdb 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4119,9 +4119,9 @@ ZEND_METHOD(reflection_property, getDocComment) } /* }}} */ -/* {{{ 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; @@ -4744,7 +4744,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_property_setValue, 0) 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() @@ -4764,7 +4764,7 @@ static const zend_function_entry reflection_property_functions[] = { 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} }; diff --git a/ext/reflection/tests/reflectionProperty_setAccesible.phpt b/ext/reflection/tests/reflectionProperty_setAccessible.phpt similarity index 88% rename from ext/reflection/tests/reflectionProperty_setAccesible.phpt rename to ext/reflection/tests/reflectionProperty_setAccessible.phpt index f96dac77f5..5e26b2808a 100644 --- a/ext/reflection/tests/reflectionProperty_setAccesible.phpt +++ b/ext/reflection/tests/reflectionProperty_setAccessible.phpt @@ -1,5 +1,5 @@ --TEST-- -Test ReflectionProperty::setAccesible(). +Test ReflectionProperty::setAccessible(). --SKIPIF-- --FILE-- @@ -27,10 +27,10 @@ catch(Exception $exc) { 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)); } -- 2.40.0