Skip to content

Commit d379044

Browse files
committed
Generate a few missing optimizer function entries from stubs
1 parent 4a7a414 commit d379044

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

Zend/Optimizer/zend_func_infos.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ static const func_info_t func_infos[] = {
2525
F1("spl_classes", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING),
2626
F1("spl_object_hash", MAY_BE_STRING),
2727
FN("socket_export_stream", MAY_BE_RESOURCE|MAY_BE_FALSE),
28+
FN("dba_popen", MAY_BE_RESOURCE|MAY_BE_FALSE),
29+
FN("dba_open", MAY_BE_RESOURCE|MAY_BE_FALSE),
30+
FN("bzopen", MAY_BE_RESOURCE|MAY_BE_FALSE),
2831
F1("gzopen", MAY_BE_RESOURCE|MAY_BE_FALSE),
2932
#if HAVE_NANOSLEEP
3033
F1("time_nanosleep", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_LONG|MAY_BE_BOOL),
@@ -60,6 +63,31 @@ static const func_info_t func_infos[] = {
6063
FN("oci_get_implicit_resultset", MAY_BE_RESOURCE|MAY_BE_FALSE),
6164
FN("oci_password_change", MAY_BE_RESOURCE|MAY_BE_BOOL),
6265
FN("oci_new_cursor", MAY_BE_RESOURCE|MAY_BE_FALSE),
66+
FN("odbc_prepare", MAY_BE_RESOURCE|MAY_BE_FALSE),
67+
FN("odbc_exec", MAY_BE_RESOURCE|MAY_BE_FALSE),
68+
FN("odbc_connect", MAY_BE_RESOURCE|MAY_BE_FALSE),
69+
FN("odbc_pconnect", MAY_BE_RESOURCE|MAY_BE_FALSE),
70+
FN("odbc_tables", MAY_BE_RESOURCE|MAY_BE_FALSE),
71+
FN("odbc_columns", MAY_BE_RESOURCE|MAY_BE_FALSE),
72+
FN("odbc_gettypeinfo", MAY_BE_RESOURCE|MAY_BE_FALSE),
73+
FN("odbc_primarykeys", MAY_BE_RESOURCE|MAY_BE_FALSE),
74+
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
75+
FN("odbc_procedurecolumns", MAY_BE_RESOURCE|MAY_BE_FALSE),
76+
#endif
77+
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
78+
FN("odbc_procedures", MAY_BE_RESOURCE|MAY_BE_FALSE),
79+
#endif
80+
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
81+
FN("odbc_foreignkeys", MAY_BE_RESOURCE|MAY_BE_FALSE),
82+
#endif
83+
FN("odbc_specialcolumns", MAY_BE_RESOURCE|MAY_BE_FALSE),
84+
FN("odbc_statistics", MAY_BE_RESOURCE|MAY_BE_FALSE),
85+
#if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) &&!defined(HAVE_SOLID_35)
86+
FN("odbc_tableprivileges", MAY_BE_RESOURCE|MAY_BE_FALSE),
87+
#endif
88+
#if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) &&!defined(HAVE_SOLID_35)
89+
FN("odbc_columnprivileges", MAY_BE_RESOURCE|MAY_BE_FALSE),
90+
#endif
6391
F1("pg_socket", MAY_BE_RESOURCE|MAY_BE_FALSE),
6492
FN("pcntl_signal_get_handler", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_OBJECT|MAY_BE_OBJECT|MAY_BE_LONG),
6593
};

ext/readline/readline.stub.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
function readline(?string $prompt = null): string|false {}
66

7-
/**
8-
* @param int|string|bool|null $value
9-
* @return array|int|string|bool|null
10-
*/
7+
/** @param int|string|bool|null $value */
118
function readline_info(?string $var_name = null, $value = null): mixed {}
129

1310
function readline_add_history(string $prompt): bool {}

ext/readline/readline_arginfo.h

Lines changed: 1 addition & 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: d121fe2e6860eb29eba0b4d34c446cd08e3c6f43 */
2+
* Stub hash: aab1331f5ba0d8beeb62d5961ece7dc96a99a74c */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readline, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prompt, IS_STRING, 1, "null")

0 commit comments

Comments
 (0)