@@ -1649,11 +1649,6 @@ ZEND_METHOD(reflection_function, isDisabled)
1649
1649
zend_function * fptr ;
1650
1650
1651
1651
GET_REFLECTION_OBJECT_PTR (fptr );
1652
-
1653
- if (zend_parse_parameters_none () == FAILURE ) {
1654
- return ;
1655
- }
1656
-
1657
1652
RETURN_BOOL (fptr -> type == ZEND_INTERNAL_FUNCTION && fptr -> internal_function .handler == zif_display_disabled_function );
1658
1653
}
1659
1654
/* }}} */
@@ -1895,10 +1890,6 @@ ZEND_METHOD(reflection_function, returnsReference)
1895
1890
1896
1891
GET_REFLECTION_OBJECT_PTR (fptr );
1897
1892
1898
- if (zend_parse_parameters_none () == FAILURE ) {
1899
- return ;
1900
- }
1901
-
1902
1893
RETURN_BOOL ((fptr -> op_array .fn_flags & ZEND_ACC_RETURN_REFERENCE ) != 0 );
1903
1894
}
1904
1895
/* }}} */
@@ -1913,10 +1904,6 @@ ZEND_METHOD(reflection_function, getNumberOfParameters)
1913
1904
1914
1905
GET_REFLECTION_OBJECT_PTR (fptr );
1915
1906
1916
- if (zend_parse_parameters_none () == FAILURE ) {
1917
- return ;
1918
- }
1919
-
1920
1907
num_args = fptr -> common .num_args ;
1921
1908
if (fptr -> common .fn_flags & ZEND_ACC_VARIADIC ) {
1922
1909
num_args ++ ;
@@ -1935,10 +1922,6 @@ ZEND_METHOD(reflection_function, getNumberOfRequiredParameters)
1935
1922
1936
1923
GET_REFLECTION_OBJECT_PTR (fptr );
1937
1924
1938
- if (zend_parse_parameters_none () == FAILURE ) {
1939
- return ;
1940
- }
1941
-
1942
1925
RETURN_LONG (fptr -> common .required_num_args );
1943
1926
}
1944
1927
/* }}} */
@@ -1954,10 +1937,6 @@ ZEND_METHOD(reflection_function, getParameters)
1954
1937
1955
1938
GET_REFLECTION_OBJECT_PTR (fptr );
1956
1939
1957
- if (zend_parse_parameters_none () == FAILURE ) {
1958
- return ;
1959
- }
1960
-
1961
1940
arg_info = fptr -> common .arg_info ;
1962
1941
num_args = fptr -> common .num_args ;
1963
1942
if (fptr -> common .fn_flags & ZEND_ACC_VARIADIC ) {
@@ -1997,10 +1976,6 @@ ZEND_METHOD(reflection_function, getExtension)
1997
1976
1998
1977
GET_REFLECTION_OBJECT_PTR (fptr );
1999
1978
2000
- if (zend_parse_parameters_none () == FAILURE ) {
2001
- return ;
2002
- }
2003
-
2004
1979
if (fptr -> type != ZEND_INTERNAL_FUNCTION ) {
2005
1980
RETURN_NULL ();
2006
1981
}
@@ -2024,10 +1999,6 @@ ZEND_METHOD(reflection_function, getExtensionName)
2024
1999
2025
2000
GET_REFLECTION_OBJECT_PTR (fptr );
2026
2001
2027
- if (zend_parse_parameters_none () == FAILURE ) {
2028
- return ;
2029
- }
2030
-
2031
2002
if (fptr -> type != ZEND_INTERNAL_FUNCTION ) {
2032
2003
RETURN_FALSE ;
2033
2004
}
@@ -3013,10 +2984,6 @@ ZEND_METHOD(reflection_method, getClosure)
3013
2984
GET_REFLECTION_OBJECT_PTR (mptr );
3014
2985
3015
2986
if (mptr -> common .fn_flags & ZEND_ACC_STATIC ) {
3016
- if (zend_parse_parameters_none () == FAILURE ) {
3017
- return ;
3018
- }
3019
-
3020
2987
zend_create_fake_closure (return_value , mptr , mptr -> common .scope , mptr -> common .scope , NULL );
3021
2988
} else {
3022
2989
if (zend_parse_parameters (ZEND_NUM_ARGS (), "o" , & obj ) == FAILURE ) {
@@ -4676,10 +4643,6 @@ ZEND_METHOD(reflection_class, newInstanceWithoutConstructor)
4676
4643
4677
4644
GET_REFLECTION_OBJECT_PTR (ce );
4678
4645
4679
- if (zend_parse_parameters_none () == FAILURE ) {
4680
- return ;
4681
- }
4682
-
4683
4646
if (ce -> type == ZEND_INTERNAL_CLASS
4684
4647
&& ce -> create_object != NULL && (ce -> ce_flags & ZEND_ACC_FINAL )) {
4685
4648
zend_throw_exception_ex (reflection_exception_ptr , 0 , "Class %s is an internal class marked as final that cannot be instantiated without invoking its constructor" , ZSTR_VAL (ce -> name ));
@@ -5415,10 +5378,6 @@ ZEND_METHOD(reflection_property, getValue)
5415
5378
}
5416
5379
5417
5380
if (ref -> prop .flags & ZEND_ACC_STATIC ) {
5418
- if (zend_parse_parameters_none () == FAILURE ) {
5419
- return ;
5420
- }
5421
-
5422
5381
member_p = zend_read_static_property_ex (intern -> ce , ref -> unmangled_name , 0 );
5423
5382
if (member_p ) {
5424
5383
ZVAL_COPY_DEREF (return_value , member_p );
@@ -5504,10 +5463,6 @@ ZEND_METHOD(reflection_property, isInitialized)
5504
5463
}
5505
5464
5506
5465
if (ref -> prop .flags & ZEND_ACC_STATIC ) {
5507
- if (zend_parse_parameters_none () == FAILURE ) {
5508
- return ;
5509
- }
5510
-
5511
5466
member_p = zend_read_static_property_ex (intern -> ce , ref -> unmangled_name , 1 );
5512
5467
if (member_p ) {
5513
5468
RETURN_BOOL (!Z_ISUNDEF_P (member_p ));
0 commit comments