File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ PHP_FUNCTION(count)
773
773
count = php_count_recursive (array );
774
774
} else {
775
775
zend_value_error ("Mode value is invalid" );
776
- return ;
776
+ RETURN_THROWS () ;
777
777
}
778
778
RETURN_LONG (count );
779
779
}
@@ -783,7 +783,7 @@ PHP_FUNCTION(count)
783
783
& countable , & mode ) == SUCCESS ) {
784
784
if (mode != COUNT_NORMAL && mode != COUNT_RECURSIVE ) {
785
785
zend_value_error ("Mode value is invalid" );
786
- return ;
786
+ RETURN_THROWS () ;
787
787
}
788
788
/* First, check if the handler is defined as it is faster */
789
789
if (Z_OBJ_HT_P (countable )-> count_elements ) {
@@ -792,7 +792,7 @@ PHP_FUNCTION(count)
792
792
return ;
793
793
}
794
794
if (EG (exception )) {
795
- return ;
795
+ RETURN_THROWS () ;
796
796
}
797
797
}
798
798
@@ -808,7 +808,7 @@ PHP_FUNCTION(count)
808
808
}
809
809
}
810
810
zend_type_error ("Parameter must be an array or an object that implements Countable" );
811
- return ;
811
+ RETURN_THROWS () ;
812
812
}
813
813
/* }}} */
814
814
You can’t perform that action at this time.
0 commit comments