Skip to content

Commit 5f21062

Browse files
committed
Generate class entries for a few extensions
Relates to GH-6644
1 parent c5f4c3d commit 5f21062

22 files changed

+480
-128
lines changed

ext/bcmath/bcmath.stub.php

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

3-
/** @generate-function-entries */
3+
/**
4+
* @generate-function-entries
5+
* @generate-class-entries
6+
*/
47

58
function bcadd(string $num1, string $num2, ?int $scale = null): string {}
69

ext/bcmath/bcmath_arginfo.h

Lines changed: 2 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: 0c1e2a6163a5fc0f42bf79bbc530af7c5fd77074 */
2+
* Stub hash: 2232d60eb40f382b141ec28fe9542bd88e784333 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcadd, 0, 2, IS_STRING, 0)
55
ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
@@ -69,3 +69,4 @@ static const zend_function_entry ext_functions[] = {
6969
ZEND_FE(bcscale, arginfo_bcscale)
7070
ZEND_FE_END
7171
};
72+

ext/bz2/bz2.stub.php

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

3-
/** @generate-function-entries */
3+
/**
4+
* @generate-function-entries
5+
* @generate-class-entries
6+
*/
47

58
/**
69
* @param string|resource $file

ext/bz2/bz2_arginfo.h

Lines changed: 2 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: 5436fd5a4b0fbfd3b3b3f1caa6a0cf8326c9c5f7 */
2+
* Stub hash: 10682cdfc126686cab8497868287459dc574b93d */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_bzopen, 0, 0, 2)
55
ZEND_ARG_INFO(0, file)
@@ -72,3 +72,4 @@ static const zend_function_entry ext_functions[] = {
7272
ZEND_FE(bzdecompress, arginfo_bzdecompress)
7373
ZEND_FE_END
7474
};
75+

ext/calendar/calendar.stub.php

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

3-
/** @generate-function-entries */
3+
/**
4+
* @generate-function-entries
5+
* @generate-class-entries
6+
*/
47

58
function cal_days_in_month(int $calendar, int $month, int $year): int {}
69

ext/calendar/calendar_arginfo.h

Lines changed: 2 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: ced2659f54bb25693831315625fe90b33e2f7cbe */
2+
* Stub hash: 4953fb1f36502b399061f5e0ca2f700d09761be3 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_days_in_month, 0, 3, IS_LONG, 0)
55
ZEND_ARG_TYPE_INFO(0, calendar, IS_LONG, 0)
@@ -116,3 +116,4 @@ static const zend_function_entry ext_functions[] = {
116116
ZEND_FE(unixtojd, arginfo_unixtojd)
117117
ZEND_FE_END
118118
};
119+

ext/ctype/ctype.stub.php

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

3-
/** @generate-function-entries */
3+
/**
4+
* @generate-function-entries
5+
* @generate-class-entries
6+
*/
47

58
function ctype_alnum(mixed $text): bool {}
69

ext/ctype/ctype_arginfo.h

Lines changed: 2 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: aa287af25fe33a05d15d85b92b0edcfae00284a2 */
2+
* Stub hash: bdf377cc2819bdc625cd2ee1afed2f3e7990eef8 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ctype_alnum, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, text, IS_MIXED, 0)
@@ -53,3 +53,4 @@ static const zend_function_entry ext_functions[] = {
5353
ZEND_FE(ctype_xdigit, arginfo_ctype_xdigit)
5454
ZEND_FE_END
5555
};
56+

ext/curl/curl.stub.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
<?php
22

3-
/** @generate-function-entries */
3+
/**
4+
* @generate-function-entries
5+
* @generate-class-entries
6+
*/
47

8+
/** @strict-properties */
59
final class CurlHandle
610
{
711
}
812

13+
/** @strict-properties */
914
final class CurlMultiHandle
1015
{
1116
}
1217

18+
/** @strict-properties */
1319
final class CurlShareHandle
1420
{
1521
}

ext/curl/curl_arginfo.h

Lines changed: 35 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: f1d616c644ad366405816cde0384f6f391773ebf */
2+
* Stub hash: 0d1b398a10959922a9e12df75fd8465291058fd5 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0)
55
ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)
@@ -241,3 +241,37 @@ static const zend_function_entry class_CurlMultiHandle_methods[] = {
241241
static const zend_function_entry class_CurlShareHandle_methods[] = {
242242
ZEND_FE_END
243243
};
244+
245+
zend_class_entry *register_class_CurlHandle()
246+
{
247+
zend_class_entry ce, *class_entry;
248+
249+
INIT_CLASS_ENTRY(ce, "CurlHandle", class_CurlHandle_methods);
250+
class_entry = zend_register_internal_class_ex(&ce, NULL);
251+
class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES;
252+
253+
return class_entry;
254+
}
255+
256+
zend_class_entry *register_class_CurlMultiHandle()
257+
{
258+
zend_class_entry ce, *class_entry;
259+
260+
INIT_CLASS_ENTRY(ce, "CurlMultiHandle", class_CurlMultiHandle_methods);
261+
class_entry = zend_register_internal_class_ex(&ce, NULL);
262+
class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES;
263+
264+
return class_entry;
265+
}
266+
267+
zend_class_entry *register_class_CurlShareHandle()
268+
{
269+
zend_class_entry ce, *class_entry;
270+
271+
INIT_CLASS_ENTRY(ce, "CurlShareHandle", class_CurlShareHandle_methods);
272+
class_entry = zend_register_internal_class_ex(&ce, NULL);
273+
class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES;
274+
275+
return class_entry;
276+
}
277+

0 commit comments

Comments
 (0)