diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-25 23:10:07 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-26 11:13:14 +0200 |
commit | 33c3691c332f9f084a04cba6d775b5876da1fec3 (patch) | |
tree | 987ee902bd14e17bfad6d856d71598275689c141 /Zend/zend_generators_arginfo.h | |
parent | d21d23afef54f152d9ca661909c6d042d6bfcf48 (diff) | |
download | php-git-33c3691c332f9f084a04cba6d775b5876da1fec3.tar.gz |
Generate method entries from stubs for Zend classes
Closes GH-5459
Diffstat (limited to 'Zend/zend_generators_arginfo.h')
-rw-r--r-- | Zend/zend_generators_arginfo.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/zend_generators_arginfo.h b/Zend/zend_generators_arginfo.h index a65d6b1b12..214595e580 100644 --- a/Zend/zend_generators_arginfo.h +++ b/Zend/zend_generators_arginfo.h @@ -22,3 +22,26 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_throw, 0, 0, 1) ZEND_END_ARG_INFO() #define arginfo_class_Generator_getReturn arginfo_class_Generator_current + + +ZEND_METHOD(Generator, rewind); +ZEND_METHOD(Generator, valid); +ZEND_METHOD(Generator, current); +ZEND_METHOD(Generator, key); +ZEND_METHOD(Generator, next); +ZEND_METHOD(Generator, send); +ZEND_METHOD(Generator, throw); +ZEND_METHOD(Generator, getReturn); + + +static const zend_function_entry class_Generator_methods[] = { + ZEND_ME(Generator, rewind, arginfo_class_Generator_rewind, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, valid, arginfo_class_Generator_valid, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, current, arginfo_class_Generator_current, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, key, arginfo_class_Generator_key, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, next, arginfo_class_Generator_next, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, send, arginfo_class_Generator_send, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, throw, arginfo_class_Generator_throw, ZEND_ACC_PUBLIC) + ZEND_ME(Generator, getReturn, arginfo_class_Generator_getReturn, ZEND_ACC_PUBLIC) + ZEND_FE_END +}; |