]> granicus.if.org Git - php/commitdiff
- Fixed typo
authorDerick Rethans <derick@php.net>
Fri, 15 Feb 2008 12:47:21 +0000 (12:47 +0000)
committerDerick Rethans <derick@php.net>
Fri, 15 Feb 2008 12:47:21 +0000 (12:47 +0000)
ext/reflection/php_reflection.c
ext/reflection/tests/reflectionProperty_setAccessible.phpt [moved from ext/reflection/tests/reflectionProperty_setAccesible.phpt with 88% similarity]

index 3a13ba359ad3ade8c3fe7fd4f209bedafe52c0ea..1b352cc9ae7b631c152b626ecac7f1a25c4ffff0 100644 (file)
@@ -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}
 };
 
similarity index 88%
rename from ext/reflection/tests/reflectionProperty_setAccesible.phpt
rename to ext/reflection/tests/reflectionProperty_setAccessible.phpt
index f96dac77f5691394b72dff2518a6b2365625c168..5e26b2808aad0bf36cc9f11c707b55c1afd4c0a6 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Test ReflectionProperty::setAccesible().
+Test ReflectionProperty::setAccessible().
 --SKIPIF--
 <?php extension_loaded('reflection') or die('skip'); ?>
 --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));
 }