@@ -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
}
@@ -4643,6 +4672,10 @@ ZEND_METHOD(reflection_class, newInstanceWithoutConstructor)
4643
4672
4644
4673
GET_REFLECTION_OBJECT_PTR (ce );
4645
4674
4675
+ if (zend_parse_parameters_none () == FAILURE ) {
4676
+ return ;
4677
+ }
4678
+
4646
4679
if (ce -> type == ZEND_INTERNAL_CLASS
4647
4680
&& ce -> create_object != NULL && (ce -> ce_flags & ZEND_ACC_FINAL )) {
4648
4681
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 ));
0 commit comments