@@ -936,7 +936,7 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime)
936
936
Z_PARAM_STR (format )
937
937
Z_PARAM_OPTIONAL
938
938
Z_PARAM_LONG (ts )
939
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
939
+ ZEND_PARSE_PARAMETERS_END ( );
940
940
941
941
if (ZEND_NUM_ARGS () == 1 ) {
942
942
ts = php_time ();
@@ -1096,7 +1096,7 @@ PHP_FUNCTION(idate)
1096
1096
Z_PARAM_STR (format )
1097
1097
Z_PARAM_OPTIONAL
1098
1098
Z_PARAM_LONG (ts )
1099
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1099
+ ZEND_PARSE_PARAMETERS_END ( );
1100
1100
1101
1101
if (ZSTR_LEN (format ) != 1 ) {
1102
1102
php_error_docref (NULL , E_WARNING , "idate format is one char" );
@@ -1168,7 +1168,7 @@ PHP_FUNCTION(strtotime)
1168
1168
Z_PARAM_STR (times )
1169
1169
Z_PARAM_OPTIONAL
1170
1170
Z_PARAM_LONG (preset_ts )
1171
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1171
+ ZEND_PARSE_PARAMETERS_END ( );
1172
1172
1173
1173
tzi = get_timezone_info ();
1174
1174
@@ -1214,7 +1214,7 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
1214
1214
Z_PARAM_LONG (mon )
1215
1215
Z_PARAM_LONG (day )
1216
1216
Z_PARAM_LONG (yea )
1217
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1217
+ ZEND_PARSE_PARAMETERS_END ( );
1218
1218
1219
1219
/* Initialize structure with current time */
1220
1220
now = timelib_time_ctor ();
@@ -1299,7 +1299,7 @@ PHP_FUNCTION(checkdate)
1299
1299
Z_PARAM_LONG (m )
1300
1300
Z_PARAM_LONG (d )
1301
1301
Z_PARAM_LONG (y )
1302
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1302
+ ZEND_PARSE_PARAMETERS_END ( );
1303
1303
1304
1304
if (y < 1 || y > 32767 || !timelib_valid_date (y , m , d )) {
1305
1305
RETURN_FALSE ;
@@ -1327,7 +1327,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
1327
1327
Z_PARAM_STR (format )
1328
1328
Z_PARAM_OPTIONAL
1329
1329
Z_PARAM_LONG (timestamp )
1330
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1330
+ ZEND_PARSE_PARAMETERS_END ( );
1331
1331
1332
1332
if (ZSTR_LEN (format ) == 0 ) {
1333
1333
RETURN_FALSE ;
@@ -1445,7 +1445,7 @@ PHP_FUNCTION(localtime)
1445
1445
Z_PARAM_OPTIONAL
1446
1446
Z_PARAM_LONG (timestamp )
1447
1447
Z_PARAM_BOOL (associative )
1448
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1448
+ ZEND_PARSE_PARAMETERS_END ( );
1449
1449
1450
1450
if (ZEND_NUM_ARGS () == 0 ) {
1451
1451
timestamp = (zend_long ) php_time ();
@@ -1496,7 +1496,7 @@ PHP_FUNCTION(getdate)
1496
1496
ZEND_PARSE_PARAMETERS_START (0 , 1 )
1497
1497
Z_PARAM_OPTIONAL
1498
1498
Z_PARAM_LONG (timestamp )
1499
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
1499
+ ZEND_PARSE_PARAMETERS_END ( );
1500
1500
1501
1501
if (ZEND_NUM_ARGS () == 0 ) {
1502
1502
timestamp = (zend_long ) php_time ();
@@ -2396,7 +2396,7 @@ PHP_FUNCTION(date_create)
2396
2396
Z_PARAM_OPTIONAL
2397
2397
Z_PARAM_STRING (time_str , time_str_len )
2398
2398
Z_PARAM_OBJECT_OF_CLASS_EX (timezone_object , date_ce_timezone , 1 , 0 )
2399
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2399
+ ZEND_PARSE_PARAMETERS_END ( );
2400
2400
2401
2401
php_date_instantiate (date_ce_date , return_value );
2402
2402
if (!php_date_initialize (Z_PHPDATE_P (return_value ), time_str , time_str_len , NULL , timezone_object , 0 )) {
@@ -2419,7 +2419,7 @@ PHP_FUNCTION(date_create_immutable)
2419
2419
Z_PARAM_OPTIONAL
2420
2420
Z_PARAM_STRING (time_str , time_str_len )
2421
2421
Z_PARAM_OBJECT_OF_CLASS_EX (timezone_object , date_ce_timezone , 1 , 0 )
2422
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2422
+ ZEND_PARSE_PARAMETERS_END ( );
2423
2423
2424
2424
php_date_instantiate (date_ce_immutable , return_value );
2425
2425
if (!php_date_initialize (Z_PHPDATE_P (return_value ), time_str , time_str_len , NULL , timezone_object , 0 )) {
@@ -2443,7 +2443,7 @@ PHP_FUNCTION(date_create_from_format)
2443
2443
Z_PARAM_STRING (time_str , time_str_len )
2444
2444
Z_PARAM_OPTIONAL
2445
2445
Z_PARAM_OBJECT_OF_CLASS_EX (timezone_object , date_ce_timezone , 1 , 0 )
2446
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2446
+ ZEND_PARSE_PARAMETERS_END ( );
2447
2447
2448
2448
php_date_instantiate (date_ce_date , return_value );
2449
2449
if (!php_date_initialize (Z_PHPDATE_P (return_value ), time_str , time_str_len , format_str , timezone_object , 0 )) {
@@ -2467,7 +2467,7 @@ PHP_FUNCTION(date_create_immutable_from_format)
2467
2467
Z_PARAM_STRING (time_str , time_str_len )
2468
2468
Z_PARAM_OPTIONAL
2469
2469
Z_PARAM_OBJECT_OF_CLASS_EX (timezone_object , date_ce_timezone , 1 , 0 )
2470
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2470
+ ZEND_PARSE_PARAMETERS_END ( );
2471
2471
2472
2472
php_date_instantiate (date_ce_immutable , return_value );
2473
2473
if (!php_date_initialize (Z_PHPDATE_P (return_value ), time_str , time_str_len , format_str , timezone_object , 0 )) {
@@ -2622,7 +2622,7 @@ PHP_METHOD(DateTime, __set_state)
2622
2622
2623
2623
ZEND_PARSE_PARAMETERS_START (1 , 1 )
2624
2624
Z_PARAM_ARRAY (array )
2625
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2625
+ ZEND_PARSE_PARAMETERS_END ( );
2626
2626
2627
2627
myht = Z_ARRVAL_P (array );
2628
2628
@@ -2644,7 +2644,7 @@ PHP_METHOD(DateTimeImmutable, __set_state)
2644
2644
2645
2645
ZEND_PARSE_PARAMETERS_START (1 , 1 )
2646
2646
Z_PARAM_ARRAY (array )
2647
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2647
+ ZEND_PARSE_PARAMETERS_END ( );
2648
2648
2649
2649
myht = Z_ARRVAL_P (array );
2650
2650
@@ -2794,7 +2794,7 @@ PHP_FUNCTION(date_parse)
2794
2794
2795
2795
ZEND_PARSE_PARAMETERS_START (1 , 1 )
2796
2796
Z_PARAM_STR (date )
2797
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2797
+ ZEND_PARSE_PARAMETERS_END ( );
2798
2798
2799
2799
parsed_time = timelib_strtotime (ZSTR_VAL (date ), ZSTR_LEN (date ), & error , DATE_TIMEZONEDB , php_date_parse_tzfile_wrapper );
2800
2800
php_date_do_return_parsed_time (INTERNAL_FUNCTION_PARAM_PASSTHRU , parsed_time , error );
@@ -2813,7 +2813,7 @@ PHP_FUNCTION(date_parse_from_format)
2813
2813
ZEND_PARSE_PARAMETERS_START (2 , 2 )
2814
2814
Z_PARAM_STR (format )
2815
2815
Z_PARAM_STR (date )
2816
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
2816
+ ZEND_PARSE_PARAMETERS_END ( );
2817
2817
2818
2818
parsed_time = timelib_parse_from_format (ZSTR_VAL (format ), ZSTR_VAL (date ), ZSTR_LEN (date ), & error , DATE_TIMEZONEDB , php_date_parse_tzfile_wrapper );
2819
2819
php_date_do_return_parsed_time (INTERNAL_FUNCTION_PARAM_PASSTHRU , parsed_time , error );
@@ -3495,7 +3495,7 @@ PHP_FUNCTION(timezone_open)
3495
3495
3496
3496
ZEND_PARSE_PARAMETERS_START (1 , 1 )
3497
3497
Z_PARAM_STR (tz )
3498
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
3498
+ ZEND_PARSE_PARAMETERS_END ( );
3499
3499
3500
3500
tzobj = Z_PHPTIMEZONE_P (php_date_instantiate (date_ce_timezone , return_value ));
3501
3501
if (SUCCESS != timezone_initialize (tzobj , ZSTR_VAL (tz ), ZSTR_LEN (tz ))) {
@@ -3620,7 +3620,7 @@ PHP_FUNCTION(timezone_name_from_abbr)
3620
3620
Z_PARAM_OPTIONAL
3621
3621
Z_PARAM_LONG (gmtoffset )
3622
3622
Z_PARAM_LONG (isdst )
3623
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
3623
+ ZEND_PARSE_PARAMETERS_END ( );
3624
3624
3625
3625
tzid = timelib_timezone_id_from_abbr (ZSTR_VAL (abbr ), gmtoffset , isdst );
3626
3626
@@ -4028,7 +4028,7 @@ PHP_METHOD(DateInterval, __set_state)
4028
4028
4029
4029
ZEND_PARSE_PARAMETERS_START (1 , 1 )
4030
4030
Z_PARAM_ARRAY (array )
4031
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4031
+ ZEND_PARSE_PARAMETERS_END ( );
4032
4032
4033
4033
myht = Z_ARRVAL_P (array );
4034
4034
@@ -4066,7 +4066,7 @@ PHP_FUNCTION(date_interval_create_from_date_string)
4066
4066
4067
4067
ZEND_PARSE_PARAMETERS_START (1 , 1 )
4068
4068
Z_PARAM_STR (time_str )
4069
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4069
+ ZEND_PARSE_PARAMETERS_END ( );
4070
4070
4071
4071
time = timelib_strtotime (ZSTR_VAL (time_str ), ZSTR_LEN (time_str ), & err , DATE_TIMEZONEDB , php_date_parse_tzfile_wrapper );
4072
4072
@@ -4425,7 +4425,7 @@ PHP_FUNCTION(timezone_identifiers_list)
4425
4425
Z_PARAM_OPTIONAL
4426
4426
Z_PARAM_LONG (what )
4427
4427
Z_PARAM_STRING_EX (option , option_len , 1 , 0 )
4428
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4428
+ ZEND_PARSE_PARAMETERS_END ( );
4429
4429
4430
4430
/* Extra validation */
4431
4431
if (what == PHP_DATE_TIMEZONE_PER_COUNTRY && option_len != 2 ) {
@@ -4506,7 +4506,7 @@ PHP_FUNCTION(date_default_timezone_set)
4506
4506
4507
4507
ZEND_PARSE_PARAMETERS_START (1 , 1 )
4508
4508
Z_PARAM_STRING (zone , zone_len )
4509
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4509
+ ZEND_PARSE_PARAMETERS_END ( );
4510
4510
4511
4511
if (!timelib_timezone_id_is_valid (zone , DATE_TIMEZONEDB )) {
4512
4512
php_error_docref (NULL , E_NOTICE , "Timezone ID '%s' is invalid" , zone );
@@ -4557,7 +4557,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su
4557
4557
Z_PARAM_DOUBLE (longitude )
4558
4558
Z_PARAM_DOUBLE (zenith )
4559
4559
Z_PARAM_DOUBLE (gmt_offset )
4560
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4560
+ ZEND_PARSE_PARAMETERS_END ( );
4561
4561
4562
4562
switch (ZEND_NUM_ARGS ()) {
4563
4563
case 1 :
@@ -4661,7 +4661,7 @@ PHP_FUNCTION(date_sun_info)
4661
4661
Z_PARAM_LONG (time )
4662
4662
Z_PARAM_DOUBLE (latitude )
4663
4663
Z_PARAM_DOUBLE (longitude )
4664
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4664
+ ZEND_PARSE_PARAMETERS_END ( );
4665
4665
4666
4666
/* Initialize time struct */
4667
4667
t = timelib_time_ctor ();
@@ -4912,7 +4912,7 @@ PHP_METHOD(DatePeriod, __set_state)
4912
4912
4913
4913
ZEND_PARSE_PARAMETERS_START (1 , 1 )
4914
4914
Z_PARAM_ARRAY (array )
4915
- ZEND_PARSE_PARAMETERS_END_EX ( RETURN_FALSE );
4915
+ ZEND_PARSE_PARAMETERS_END ( );
4916
4916
4917
4917
myht = Z_ARRVAL_P (array );
4918
4918
0 commit comments