@@ -3269,7 +3269,8 @@ PHP_METHOD(DateTimeImmutable, modify)
32693269 char * modify ;
32703270 size_t modify_len ;
32713271
3272- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "Os" , & object , date_ce_immutable , & modify , & modify_len ) == FAILURE ) {
3272+ object = & EX (This );
3273+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "s" , & modify , & modify_len ) == FAILURE ) {
32733274 RETURN_FALSE ;
32743275 }
32753276
@@ -3322,7 +3323,8 @@ PHP_METHOD(DateTimeImmutable, add)
33223323{
33233324 zval * object , * interval , new_object ;
33243325
3325- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "OO" , & object , date_ce_immutable , & interval , date_ce_interval ) == FAILURE ) {
3326+ object = & EX (This );
3327+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "O" , & interval , date_ce_interval ) == FAILURE ) {
33263328 RETURN_FALSE ;
33273329 }
33283330
@@ -3378,7 +3380,8 @@ PHP_METHOD(DateTimeImmutable, sub)
33783380{
33793381 zval * object , * interval , new_object ;
33803382
3381- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "OO ", & object , date_ce_immutable , & interval , date_ce_interval ) == FAILURE ) {
3383+ object = & EX (This );
3384+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "O ", & interval , date_ce_interval ) == FAILURE ) {
33823385 RETURN_FALSE ;
33833386 }
33843387
@@ -3482,7 +3485,8 @@ PHP_METHOD(DateTimeImmutable, setTimezone)
34823485 zval * object , new_object ;
34833486 zval * timezone_object ;
34843487
3485- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "OO ", & object , date_ce_immutable , & timezone_object , date_ce_timezone ) == FAILURE ) {
3488+ object = & EX (This );
3489+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "O ", & timezone_object , date_ce_timezone ) == FAILURE ) {
34863490 RETURN_FALSE ;
34873491 }
34883492
@@ -3567,7 +3571,8 @@ PHP_METHOD(DateTimeImmutable, setTime)
35673571 zval * object , new_object ;
35683572 zend_long h , i , s = 0 , ms = 0 ;
35693573
3570- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "Oll|ll" , & object , date_ce_immutable , & h , & i , & s , & ms ) == FAILURE ) {
3574+ object = & EX (This );
3575+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "ll|ll" , & h , & i , & s , & ms ) == FAILURE ) {
35713576 RETURN_FALSE ;
35723577 }
35733578
@@ -3616,7 +3621,8 @@ PHP_METHOD(DateTimeImmutable, setDate)
36163621 zval * object , new_object ;
36173622 zend_long y , m , d ;
36183623
3619- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "Olll" , & object , date_ce_immutable , & y , & m , & d ) == FAILURE ) {
3624+ object = & EX (This );
3625+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "lll" , & y , & m , & d ) == FAILURE ) {
36203626 RETURN_FALSE ;
36213627 }
36223628
@@ -3669,7 +3675,8 @@ PHP_METHOD(DateTimeImmutable, setISODate)
36693675 zval * object , new_object ;
36703676 zend_long y , w , d = 1 ;
36713677
3672- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "Oll|l" , & object , date_ce_immutable , & y , & w , & d ) == FAILURE ) {
3678+ object = & EX (This );
3679+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "ll|l" , & y , & w , & d ) == FAILURE ) {
36733680 RETURN_FALSE ;
36743681 }
36753682
@@ -3717,7 +3724,8 @@ PHP_METHOD(DateTimeImmutable, setTimestamp)
37173724 zval * object , new_object ;
37183725 zend_long timestamp ;
37193726
3720- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "Ol" , & object , date_ce_immutable , & timestamp ) == FAILURE ) {
3727+ object = & EX (This );
3728+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "l" , & timestamp ) == FAILURE ) {
37213729 RETURN_FALSE ;
37223730 }
37233731
0 commit comments