]> granicus.if.org Git - php/commitdiff
- Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118
authorFelipe Pena <felipe@php.net>
Tue, 1 Mar 2011 00:13:23 +0000 (00:13 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 1 Mar 2011 00:13:23 +0000 (00:13 +0000)
ext/spl/spl_observer.c

index 698ad22d76ff43fa766ee9e4bf4e3eb1fb1a4f06..f1a0f3161a91e09db940be1d9cf478de19f9bb47 100755 (executable)
@@ -956,11 +956,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_offsetGet, 0, 0, 1)
        ZEND_ARG_INFO(0, object)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_offsetSet, 0, 0, 2)
-       ZEND_ARG_INFO(0, object)
-       ZEND_ARG_INFO(0, info)
-ZEND_END_ARG_INFO()
-
 ZEND_BEGIN_ARG_INFO(arginfo_splobject_void, 0)
 ZEND_END_ARG_INFO()
 
@@ -987,7 +982,7 @@ static const zend_function_entry spl_funcs_SplObjectStorage[] = {
        SPL_ME(SplObjectStorage,  serialize,   arginfo_splobject_void,0)
        /* ArrayAccess */
        SPL_MA(SplObjectStorage, offsetExists, SplObjectStorage, contains, arginfo_offsetGet, 0)
-       SPL_MA(SplObjectStorage, offsetSet,    SplObjectStorage, attach,   arginfo_offsetSet, 0)
+       SPL_MA(SplObjectStorage, offsetSet,    SplObjectStorage, attach,   arginfo_attach, 0)
        SPL_MA(SplObjectStorage, offsetUnset,  SplObjectStorage, detach,   arginfo_offsetGet, 0)
        SPL_ME(SplObjectStorage, offsetGet,    arginfo_offsetGet,     0)
        {NULL, NULL, NULL}