summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-02-17 13:42:42 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-02-22 15:24:03 +0100
commit4c6533c257cfabd5dd78988bb277f410b2778140 (patch)
tree81f77c32eb3daf8012427417801b9a66afce8f41 /Zend
parentd03be8bf8613571965ec5c033f6dcd607346352a (diff)
downloadphp-git-4c6533c257cfabd5dd78988bb277f410b2778140.tar.gz
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend
Closes GH-6706
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_builtin_functions.c5
-rw-r--r--Zend/zend_builtin_functions.stub.php4
-rw-r--r--Zend/zend_builtin_functions_arginfo.h17
3 files changed, 21 insertions, 5 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 94a119eeec..94a9502bc9 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -32,10 +32,7 @@
/* }}} */
ZEND_MINIT_FUNCTION(core) { /* {{{ */
- zend_class_entry class_entry;
-
- INIT_CLASS_ENTRY(class_entry, "stdClass", NULL);
- zend_standard_class_def = zend_register_internal_class(&class_entry);
+ zend_standard_class_def = register_class_stdClass();
zend_register_default_classes();
diff --git a/Zend/zend_builtin_functions.stub.php b/Zend/zend_builtin_functions.stub.php
index 6e6175a693..87a530200d 100644
--- a/Zend/zend_builtin_functions.stub.php
+++ b/Zend/zend_builtin_functions.stub.php
@@ -2,6 +2,10 @@
/** @generate-class-entries */
+class stdClass
+{
+}
+
function zend_version(): string {}
function func_num_args(): int {}
diff --git a/Zend/zend_builtin_functions_arginfo.h b/Zend/zend_builtin_functions_arginfo.h
index abf380537e..6baaead27d 100644
--- a/Zend/zend_builtin_functions_arginfo.h
+++ b/Zend/zend_builtin_functions_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: b2216a294367f50c8b6208653ebf6fa43dc106d1 */
+ * Stub hash: 429fc9b22054348101d0b9d6746494e52dc04edf */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
@@ -333,3 +333,18 @@ static const zend_function_entry ext_functions[] = {
ZEND_FE(gc_status, arginfo_gc_status)
ZEND_FE_END
};
+
+
+static const zend_function_entry class_stdClass_methods[] = {
+ ZEND_FE_END
+};
+
+static zend_class_entry *register_class_stdClass(void)
+{
+ zend_class_entry ce, *class_entry;
+
+ INIT_CLASS_ENTRY(ce, "stdClass", class_stdClass_methods);
+ class_entry = zend_register_internal_class_ex(&ce, NULL);
+
+ return class_entry;
+}