summaryrefslogtreecommitdiff
path: root/ext/zend_test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zend_test/test.c')
-rw-r--r--ext/zend_test/test.c10
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)