@@ -912,6 +912,10 @@ static void spl_fixedarray_it_move_forward(zend_object_iterator *iter TSRMLS_DC)
912
912
SPL_METHOD (SplFixedArray , key )
913
913
{
914
914
spl_fixedarray_object * intern = (spl_fixedarray_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
915
+
916
+ if (zend_parse_parameters_none () == FAILURE ) {
917
+ return ;
918
+ }
915
919
916
920
RETURN_LONG (intern -> current );
917
921
}
@@ -922,6 +926,10 @@ SPL_METHOD(SplFixedArray, key)
922
926
SPL_METHOD (SplFixedArray , next )
923
927
{
924
928
spl_fixedarray_object * intern = (spl_fixedarray_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
929
+
930
+ if (zend_parse_parameters_none () == FAILURE ) {
931
+ return ;
932
+ }
925
933
926
934
intern -> current ++ ;
927
935
}
@@ -932,6 +940,10 @@ SPL_METHOD(SplFixedArray, next)
932
940
SPL_METHOD (SplFixedArray , valid )
933
941
{
934
942
spl_fixedarray_object * intern = (spl_fixedarray_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
943
+
944
+ if (zend_parse_parameters_none () == FAILURE ) {
945
+ return ;
946
+ }
935
947
936
948
RETURN_BOOL (intern -> current >= 0 && intern -> array && intern -> current < intern -> array -> size );
937
949
}
@@ -942,6 +954,10 @@ SPL_METHOD(SplFixedArray, valid)
942
954
SPL_METHOD (SplFixedArray , rewind )
943
955
{
944
956
spl_fixedarray_object * intern = (spl_fixedarray_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
957
+
958
+ if (zend_parse_parameters_none () == FAILURE ) {
959
+ return ;
960
+ }
945
961
946
962
intern -> current = 0 ;
947
963
}
@@ -953,7 +969,10 @@ SPL_METHOD(SplFixedArray, current)
953
969
{
954
970
zval * zindex , * * value_pp ;
955
971
spl_fixedarray_object * intern = (spl_fixedarray_object * )zend_object_store_get_object (getThis () TSRMLS_CC );
956
-
972
+
973
+ if (zend_parse_parameters_none () == FAILURE ) {
974
+ return ;
975
+ }
957
976
958
977
ALLOC_INIT_ZVAL (zindex );
959
978
ZVAL_LONG (zindex , intern -> current );
0 commit comments