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