]> granicus.if.org Git - php/commitdiff
oops missed a couple!
authorFrank M. Kromann <fmk@php.net>
Wed, 3 Nov 2004 01:20:16 +0000 (01:20 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 3 Nov 2004 01:20:16 +0000 (01:20 +0000)
Add termination block to function table. This will allow the engine to stop registreting functions at the end.
This fixes the - duplicate name - warning

ext/spl/spl_iterators.c

index 7c03da28635fbf019cd207ecbc00dd83bd5345d1..c65e2d04f5bd13372b82f8169538e88d46ceb8e7 100755 (executable)
@@ -1599,6 +1599,7 @@ static zend_function_entry spl_funcs_EmptyIterator[] = {
        SPL_ME(EmptyIterator, key,              NULL, ZEND_ACC_PUBLIC)
        SPL_ME(EmptyIterator, current,          NULL, ZEND_ACC_PUBLIC)
        SPL_ME(EmptyIterator, next,             NULL, ZEND_ACC_PUBLIC)
+       {NULL, NULL, NULL}
 };
 
 int spl_append_it_next_iterator(spl_dual_it_object *intern TSRMLS_DC) /* {{{*/
@@ -1729,6 +1730,7 @@ static zend_function_entry spl_funcs_AppendIterator[] = {
        SPL_ME(dual_it,        current,          NULL, ZEND_ACC_PUBLIC)
        SPL_ME(AppendIterator, next,             NULL, ZEND_ACC_PUBLIC)
        SPL_ME(dual_it,        getInnerIterator, NULL, ZEND_ACC_PUBLIC)
+       {NULL, NULL, NULL}
 };
 
 /* {{{ array iterator_to_array(IteratorAggregate it)