From: Derick Rethans Date: Fri, 15 Feb 2008 12:47:21 +0000 (+0000) Subject: - Fixed typo X-Git-Tag: RELEASE_2_0_0a1~463 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8717f7280641db1a8028b8c49efb08b747dea29;p=php - Fixed typo --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 3a13ba359a..1b352cc9ae 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4229,9 +4229,9 @@ ZEND_METHOD(reflection_property, getDocComment) } /* }}} */ -/* {{{ 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; @@ -4859,7 +4859,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() @@ -4880,7 +4880,7 @@ static const zend_function_entry reflection_property_functions[] = { 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} }; 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)); }