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

diff --git a/NEWS b/NEWS
index b959327552c606793b82f0475591f027705cff57..03d2b035f4fcace1cc5a3d16df98b49f6a92ae7a 100644 (file)
--- 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)
index e3a0f1e3dcd8cbe98a86ccfb4541c6d30082cde0..17d9d39fdb7a5bf9567fc0ccf30f941137eaa33c 100644 (file)
@@ -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}
 };
 
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));
 }