Skip to content

Commit fe46b60

Browse files
committed
Add IMAPConnection opaque object class to stub file
1 parent 5463723 commit fe46b60

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ PHP_MINIT_FUNCTION(imap)
474474
#endif
475475

476476

477-
INIT_CLASS_ENTRY(ce, "IMAPConnection", NULL);
477+
INIT_CLASS_ENTRY(ce, "IMAPConnection", class_IMAPConnection_methods);
478478
php_imap_ce = zend_register_internal_class(&ce);
479479
php_imap_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
480480
php_imap_ce->create_object = imap_object_create;

ext/imap/php_imap.stub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
/** @generate-function-entries */
4+
class IMAPConnection {
5+
6+
}
47

58
function imap_open(string $mailbox, string $user, string $password, int $flags = 0, int $retries = 0, array $options = []): IMAPConnection|false {}
69

ext/imap/php_imap_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 43edfa8b365d3344648ae787dff37923a42a20ca */
2+
* Stub hash: 1dbf85a4f8740bf02df35a4e184a67af6cf93e91 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAPConnection, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
@@ -510,3 +510,8 @@ static const zend_function_entry ext_functions[] = {
510510
ZEND_FE(imap_mail, arginfo_imap_mail)
511511
ZEND_FE_END
512512
};
513+
514+
515+
static const zend_function_entry class_IMAPConnection_methods[] = {
516+
ZEND_FE_END
517+
};

0 commit comments

Comments
 (0)