]> 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 7910a0d775bb2dad763b260dba941201a6e386ab..df5dc4414cce94cc0c92f2ef3d233a24433ceae1 100755 (executable)
@@ -843,11 +843,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()
 
@@ -873,7 +868,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}