diff options
author | Tyson Andre <tysonandre775@hotmail.com> | 2021-02-03 09:57:27 -0500 |
---|---|---|
committer | Tyson Andre <tysonandre775@hotmail.com> | 2021-02-06 14:09:25 -0500 |
commit | b4c6d5f7994746b9dcddc291c0bf7d91aa6e54cd (patch) | |
tree | ad84d3c6a4e90e53d98a54449bea8e8ef439835e /ext/zend_test/test.c | |
parent | 320843fe7b1e2f25fca0c634b49101e5baa4bb56 (diff) | |
download | php-git-b4c6d5f7994746b9dcddc291c0bf7d91aa6e54cd.tar.gz |
Properly render 2+ namespaces functions in build/gen_stub.php
Affects both INIT_NS_CLASS_ENTRY and ZEND_NS_FE
Add test cases of the global function and namespaced values
Closes GH-6664
Diffstat (limited to 'ext/zend_test/test.c')
-rw-r--r-- | ext/zend_test/test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/zend_test/test.c b/ext/zend_test/test.c index 64cc65b219..7ecda5cc15 100644 --- a/ext/zend_test/test.c +++ b/ext/zend_test/test.c @@ -236,6 +236,12 @@ static ZEND_FUNCTION(zend_iterable) ZEND_PARSE_PARAMETERS_END(); } +static ZEND_FUNCTION(namespaced_func) +{ + ZEND_PARSE_PARAMETERS_NONE(); + RETURN_TRUE; +} + static zend_object *zend_test_class_new(zend_class_entry *class_type) /* {{{ */ { zend_object *obj = zend_objects_new(class_type); object_properties_init(obj, class_type); @@ -323,6 +329,10 @@ static ZEND_METHOD(ZendTestNS2_Foo, method) { ZEND_PARSE_PARAMETERS_NONE(); } +static ZEND_METHOD(ZendTestNS2_ZendSubNS_Foo, method) { + ZEND_PARSE_PARAMETERS_NONE(); +} + PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("zend_test.observer.enabled", "0", PHP_INI_SYSTEM, OnUpdateBool, observer_enabled, zend_zend_test_globals, zend_test_globals) STD_PHP_INI_BOOLEAN("zend_test.observer.show_output", "1", PHP_INI_SYSTEM, OnUpdateBool, observer_show_output, zend_zend_test_globals, zend_test_globals) |