File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -866,10 +866,6 @@ PHP_FUNCTION(fprintf)
866
866
int argc ;
867
867
zend_string * result ;
868
868
869
- if (ZEND_NUM_ARGS () < 2 ) {
870
- WRONG_PARAM_COUNT ;
871
- }
872
-
873
869
ZEND_PARSE_PARAMETERS_START (2 , -1 )
874
870
Z_PARAM_RESOURCE (arg1 )
875
871
Z_PARAM_STRING (format , format_len )
@@ -901,10 +897,6 @@ PHP_FUNCTION(vfprintf)
901
897
int argc ;
902
898
zend_string * result ;
903
899
904
- if (ZEND_NUM_ARGS () != 3 ) {
905
- WRONG_PARAM_COUNT ;
906
- }
907
-
908
900
ZEND_PARSE_PARAMETERS_START (3 , 3 )
909
901
Z_PARAM_RESOURCE (arg1 )
910
902
Z_PARAM_STRING (format , format_len )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ echo "Done\n";
31
31
?>
32
32
--EXPECT--
33
33
*** Testing Error Conditions ***
34
- Wrong parameter count for fprintf()
35
- Wrong parameter count for fprintf()
36
- Wrong parameter count for fprintf()
34
+ fprintf() expects at least 2 parameters, 0 given
35
+ fprintf() expects at least 2 parameters, 1 given
36
+ fprintf() expects at least 2 parameters, 1 given
37
37
Done
Original file line number Diff line number Diff line change @@ -38,5 +38,5 @@ unlink( $file );
38
38
?>
39
39
--EXPECT--
40
40
-- Testing vfprintf() function with more than expected no. of arguments --
41
- Wrong parameter count for vfprintf()
42
- Wrong parameter count for vfprintf()
41
+ vfprintf() expects exactly 3 parameters, 4 given
42
+ vfprintf() expects exactly 3 parameters, 4 given
You can’t perform that action at this time.
0 commit comments