Skip to content

Commit

Permalink
Fixed some arg infos to match documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed May 13, 2019
1 parent ec518ae commit 47270e7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions ext/spl/spl_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ SPL_METHOD(Array, setFlags)
}
/* }}} */

/* {{{ proto Array|Object ArrayObject::exchangeArray(Array|Object ar = array())
/* {{{ proto Array|Object ArrayObject::exchangeArray(Array|Object input = array())
Replace the referenced array or object with a new one and return the old one (right now copy - to be changed) */
SPL_METHOD(Array, exchangeArray)
{
Expand Down Expand Up @@ -1897,7 +1897,7 @@ ZEND_END_ARG_INFO()
/* ArrayIterator::__construct and ArrayObject::__construct have different signatures */
ZEND_BEGIN_ARG_INFO_EX(arginfo_array_iterator___construct, 0, 0, 0)
ZEND_ARG_INFO(0, array)
ZEND_ARG_INFO(0, ar_flags)
ZEND_ARG_INFO(0, flags)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_array_offsetGet, 0, 0, 1)
Expand All @@ -1918,7 +1918,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_array_seek, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_array_exchangeArray, 0)
ZEND_ARG_INFO(0, array)
ZEND_ARG_INFO(0, input)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_array_setFlags, 0)
Expand Down
4 changes: 2 additions & 2 deletions ext/spl/spl_dllist.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ SPL_METHOD(SplDoublyLinkedList, isEmpty)
}
/* }}} */

/* {{{ proto int SplDoublyLinkedList::setIteratorMode(int flags)
/* {{{ proto int SplDoublyLinkedList::setIteratorMode(int mode)
Set the mode of iteration */
SPL_METHOD(SplDoublyLinkedList, setIteratorMode)
{
Expand Down Expand Up @@ -1376,7 +1376,7 @@ zend_object_iterator *spl_dllist_get_iterator(zend_class_entry *ce, zval *object

/* Function/Class/Method definitions */
ZEND_BEGIN_ARG_INFO(arginfo_dllist_setiteratormode, 0)
ZEND_ARG_INFO(0, flags)
ZEND_ARG_INFO(0, mode)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_dllist_push, 0)
Expand Down
4 changes: 2 additions & 2 deletions ext/spl/spl_fixedarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ SPL_METHOD(SplFixedArray, toArray)
}
/* }}} */

/* {{{ proto object SplFixedArray::fromArray(array data[, bool save_indexes])
/* {{{ proto object SplFixedArray::fromArray(array array[, bool save_indexes])
*/
SPL_METHOD(SplFixedArray, fromArray)
{
Expand Down Expand Up @@ -1035,7 +1035,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_fixedarray_setSize, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_fixedarray_fromArray, 0, 0, 1)
ZEND_ARG_INFO(0, data)
ZEND_ARG_INFO(0, array)
ZEND_ARG_INFO(0, save_indexes)
ZEND_END_ARG_INFO()

Expand Down
10 changes: 5 additions & 5 deletions ext/spl/spl_heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ SPL_METHOD(SplHeap, isCorrupted)
}
/* }}} */

/* {{{ proto bool SplPriorityQueue::compare(mixed $a, mixed $b)
/* {{{ proto bool SplPriorityQueue::compare(mixed $value1, mixed $value2)
compare the priorities */
SPL_METHOD(SplPriorityQueue, compare)
{
Expand Down Expand Up @@ -854,7 +854,7 @@ SPL_METHOD(SplHeap, top)
}
/* }}} */

/* {{{ proto bool SplMinHeap::compare(mixed $a, mixed $b)
/* {{{ proto bool SplMinHeap::compare(mixed $value1, mixed $value2)
compare the values */
SPL_METHOD(SplMinHeap, compare)
{
Expand All @@ -868,7 +868,7 @@ SPL_METHOD(SplMinHeap, compare)
}
/* }}} */

/* {{{ proto bool SplMaxHeap::compare(mixed $a, mixed $b)
/* {{{ proto bool SplMaxHeap::compare(mixed $value1, mixed $value2)
compare the values */
SPL_METHOD(SplMaxHeap, compare)
{
Expand Down Expand Up @@ -1135,8 +1135,8 @@ ZEND_BEGIN_ARG_INFO(arginfo_heap_insert, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_heap_compare, 0)
ZEND_ARG_INFO(0, a)
ZEND_ARG_INFO(0, b)
ZEND_ARG_INFO(0, value1)
ZEND_ARG_INFO(0, value2)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_pqueue_insert, 0)
Expand Down
8 changes: 4 additions & 4 deletions ext/spl/spl_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SPL_METHOD(SplSubject, detach);
SPL_METHOD(SplSubject, notify);

ZEND_BEGIN_ARG_INFO(arginfo_SplObserver_update, 0)
ZEND_ARG_OBJ_INFO(0, SplSubject, SplSubject, 0)
ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)
ZEND_END_ARG_INFO();

static const zend_function_entry spl_funcs_SplObserver[] = {
Expand All @@ -53,7 +53,7 @@ static const zend_function_entry spl_funcs_SplObserver[] = {
};

ZEND_BEGIN_ARG_INFO(arginfo_SplSubject_attach, 0)
ZEND_ARG_OBJ_INFO(0, SplObserver, SplObserver, 0)
ZEND_ARG_OBJ_INFO(0, observer, SplObserver, 0)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO(arginfo_SplSubject_void, 0)
Expand Down Expand Up @@ -393,7 +393,7 @@ int spl_object_storage_contains(spl_SplObjectStorage *intern, zval *this, zval *
return found;
} /* }}} */

/* {{{ proto void SplObjectStorage::attach(object obj, mixed inf = NULL)
/* {{{ proto void SplObjectStorage::attach(object obj, mixed data = NULL)
Attaches an object to the storage if not yet contained */
SPL_METHOD(SplObjectStorage, attach)
{
Expand Down Expand Up @@ -946,7 +946,7 @@ ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_attach, 0, 0, 1)
ZEND_ARG_INFO(0, object)
ZEND_ARG_INFO(0, inf)
ZEND_ARG_INFO(0, data)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO(arginfo_Serialized, 0)
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/tests/bug71412.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Method [ <internal:SPL, ctor> public method __construct ] {

- Parameters [2] {
Parameter #0 [ <optional> $array ]
Parameter #1 [ <optional> $ar_flags ]
Parameter #1 [ <optional> $flags ]
}
}

0 comments on commit 47270e7

Please sign in to comment.