File tree Expand file tree Collapse file tree 17 files changed +79
-46
lines changed Expand file tree Collapse file tree 17 files changed +79
-46
lines changed Original file line number Diff line number Diff line change @@ -504,8 +504,9 @@ static void curl_free_slist(void **slist)
504
504
Return the CURL version string. */
505
505
PHP_FUNCTION (curl_version )
506
506
{
507
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
508
- return ;
507
+ if (ZEND_NUM_ARGS () != 0 ) {
508
+ WRONG_PARAM_COUNT ;
509
+ }
509
510
510
511
RETURN_STRING (curl_version (), 1 );
511
512
}
Original file line number Diff line number Diff line change @@ -252,8 +252,9 @@ PHP_MINFO_FUNCTION(db)
252
252
Describes the dbm-compatible library being used */
253
253
PHP_FUNCTION (dblist )
254
254
{
255
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
256
- return ;
255
+ if (ZEND_NUM_ARGS () != 0 ) {
256
+ WRONG_PARAM_COUNT ;
257
+ }
257
258
258
259
char * str = php_get_info_db ();
259
260
RETURN_STRING (str , 1 );
Original file line number Diff line number Diff line change @@ -2432,8 +2432,9 @@ PHP_FUNCTION(xmltree)
2432
2432
Initializing XPath environment */
2433
2433
PHP_FUNCTION (xpath_init )
2434
2434
{
2435
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
2436
- return ;
2435
+ if (ZEND_NUM_ARGS () != 0 ) {
2436
+ WRONG_PARAM_COUNT ;
2437
+ }
2437
2438
2438
2439
xmlXPathInit ();
2439
2440
RETURN_TRUE ;
Original file line number Diff line number Diff line change @@ -209,8 +209,9 @@ PHP_FUNCTION(fdf_create)
209
209
FDFDoc fdf ;
210
210
FDFErc err ;
211
211
212
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
213
- return ;
212
+ if (ZEND_NUM_ARGS () != 0 ) {
213
+ WRONG_PARAM_COUNT ;
214
+ }
214
215
215
216
err = FDFCreate (& fdf );
216
217
Original file line number Diff line number Diff line change @@ -931,8 +931,9 @@ PHP_FUNCTION(imagetypes)
931
931
#ifdef HAVE_GD_XPM
932
932
ret |= 16 ;
933
933
#endif
934
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
935
- return ;
934
+ if (ZEND_NUM_ARGS () != 0 ) {
935
+ WRONG_PARAM_COUNT ;
936
+ }
936
937
937
938
RETURN_LONG (ret );
938
939
}
Original file line number Diff line number Diff line change @@ -1331,8 +1331,9 @@ PHP_FUNCTION(hw_errormsg)
1331
1331
Returns object id of root collection */
1332
1332
PHP_FUNCTION (hw_root )
1333
1333
{
1334
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
1335
- return ;
1334
+ if (ZEND_NUM_ARGS () != 0 ) {
1335
+ WRONG_PARAM_COUNT ;
1336
+ }
1336
1337
1337
1338
return_value -> value .lval = 0 ;
1338
1339
return_value -> type = IS_LONG ;
Original file line number Diff line number Diff line change @@ -236,8 +236,9 @@ typedef struct {
236
236
Return error message */
237
237
PHP_FUNCTION (ibase_errmsg )
238
238
{
239
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
240
- return ;
239
+ if (ZEND_NUM_ARGS () != 0 ) {
240
+ WRONG_PARAM_COUNT ;
241
+ }
241
242
242
243
if (IBG (errmsg [0 ])) {
243
244
RETURN_STRING (IBG (errmsg ), 1 );
Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ static PHP_MINIT_FUNCTION(mhash)
83
83
Gets the number of available hashes */
84
84
PHP_FUNCTION (mhash_count )
85
85
{
86
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
87
- return ;
86
+ if (ZEND_NUM_ARGS () != 0 ) {
87
+ WRONG_PARAM_COUNT ;
88
+ }
88
89
89
90
RETURN_LONG (mhash_count ());
90
91
}
Original file line number Diff line number Diff line change @@ -711,8 +711,9 @@ PHP_FUNCTION(odbc_close_all)
711
711
int i ;
712
712
int nument ;
713
713
714
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
715
- return ;
714
+ if (ZEND_NUM_ARGS () != 0 ) {
715
+ WRONG_PARAM_COUNT ;
716
+ }
716
717
717
718
nument = zend_hash_next_free_element (& EG (regular_list ));
718
719
Original file line number Diff line number Diff line change @@ -292,8 +292,9 @@ PHP_FUNCTION(xslt_output_endtransform)
292
292
* buffer = NULL ;
293
293
int ret = 0 ;
294
294
295
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
296
- return ;
295
+ if (ZEND_NUM_ARGS () != 0 ) {
296
+ WRONG_PARAM_COUNT ;
297
+ }
297
298
298
299
/**
299
300
* Make sure that we don't have more than one output buffer going on
@@ -551,7 +552,6 @@ PHP_FUNCTION(xslt_process)
551
552
}
552
553
/* }}} */
553
554
554
-
555
555
/* {{{ proto resource xslt_create(void)
556
556
Create a new XSL processor and return a resource identifier. */
557
557
PHP_FUNCTION (xslt_create )
@@ -560,8 +560,9 @@ PHP_FUNCTION(xslt_create)
560
560
SablotHandle p ;
561
561
int ret ;
562
562
563
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "" ) == FAILURE )
564
- return ;
563
+ if (ZEND_NUM_ARGS () != 0 ) {
564
+ WRONG_PARAM_COUNT ;
565
+ }
565
566
566
567
ret = SablotCreateProcessor (& p );
567
568
You can’t perform that action at this time.
0 commit comments