Skip to content

Get rid of empty function entries #5917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions ext/pdo_dblib/pdo_dblib.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
ZEND_DECLARE_MODULE_GLOBALS(dblib)
static PHP_GINIT_FUNCTION(dblib);

static const zend_function_entry pdo_dblib_functions[] = {
PHP_FE_END
};

static const zend_module_dep pdo_dblib_deps[] = {
ZEND_MOD_REQUIRED("pdo")
ZEND_MOD_END
Expand All @@ -54,7 +50,7 @@ zend_module_entry pdo_dblib_module_entry = {
#else
"pdo_dblib",
#endif
pdo_dblib_functions,
NULL,
PHP_MINIT(pdo_dblib),
PHP_MSHUTDOWN(pdo_dblib),
NULL,
Expand Down
7 changes: 1 addition & 6 deletions ext/pdo_firebird/pdo_firebird.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
#include "php_pdo_firebird.h"
#include "php_pdo_firebird_int.h"

static const zend_function_entry pdo_firebird_functions[] = { /* {{{ */
PHP_FE_END
};
/* }}} */

/* {{{ pdo_firebird_deps */
static const zend_module_dep pdo_firebird_deps[] = {
ZEND_MOD_REQUIRED("pdo")
Expand All @@ -42,7 +37,7 @@ zend_module_entry pdo_firebird_module_entry = { /* {{{ */
STANDARD_MODULE_HEADER_EX, NULL,
pdo_firebird_deps,
"PDO_Firebird",
pdo_firebird_functions,
NULL,
PHP_MINIT(pdo_firebird),
PHP_MSHUTDOWN(pdo_firebird),
NULL,
Expand Down
8 changes: 1 addition & 7 deletions ext/pdo_mysql/pdo_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ ZEND_TSRMLS_CACHE_UPDATE();
}
/* }}} */

/* {{{ pdo_mysql_functions[] */
static const zend_function_entry pdo_mysql_functions[] = {
PHP_FE_END
};
/* }}} */

/* {{{ pdo_mysql_deps[] */
static const zend_module_dep pdo_mysql_deps[] = {
ZEND_MOD_REQUIRED("pdo")
Expand All @@ -235,7 +229,7 @@ zend_module_entry pdo_mysql_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_mysql_deps,
"pdo_mysql",
pdo_mysql_functions,
NULL,
PHP_MINIT(pdo_mysql),
PHP_MSHUTDOWN(pdo_mysql),
#if defined(PDO_USE_MYSQLND) && PDO_DBG_ENABLED
Expand Down
8 changes: 1 addition & 7 deletions ext/pdo_oci/pdo_oci.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
#include <TSRM/TSRM.h>
#endif

/* {{{ pdo_oci_functions[] */
static const zend_function_entry pdo_oci_functions[] = {
PHP_FE_END
};
/* }}} */

/* {{{ pdo_oci_module_entry */

static const zend_module_dep pdo_oci_deps[] = {
Expand All @@ -46,7 +40,7 @@ zend_module_entry pdo_oci_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_oci_deps,
"PDO_OCI",
pdo_oci_functions,
NULL,
PHP_MINIT(pdo_oci),
PHP_MSHUTDOWN(pdo_oci),
PHP_RINIT(pdo_oci),
Expand Down
8 changes: 1 addition & 7 deletions ext/pdo_odbc/pdo_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
#include "php_pdo_odbc.h"
#include "php_pdo_odbc_int.h"

/* {{{ pdo_odbc_functions[] */
static const zend_function_entry pdo_odbc_functions[] = {
PHP_FE_END
};
/* }}} */

/* {{{ pdo_odbc_deps[] */
static const zend_module_dep pdo_odbc_deps[] = {
ZEND_MOD_REQUIRED("pdo")
Expand All @@ -44,7 +38,7 @@ zend_module_entry pdo_odbc_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_odbc_deps,
"PDO_ODBC",
pdo_odbc_functions,
NULL,
PHP_MINIT(pdo_odbc),
PHP_MSHUTDOWN(pdo_odbc),
NULL,
Expand Down
8 changes: 1 addition & 7 deletions ext/pdo_pgsql/pdo_pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
#include "php_pdo_pgsql.h"
#include "php_pdo_pgsql_int.h"

/* {{{ pdo_pgsql_functions[] */
static const zend_function_entry pdo_pgsql_functions[] = {
PHP_FE_END
};
/* }}} */

/* {{{ pdo_sqlite_deps */
static const zend_module_dep pdo_pgsql_deps[] = {
ZEND_MOD_REQUIRED("pdo")
Expand All @@ -44,7 +38,7 @@ zend_module_entry pdo_pgsql_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_pgsql_deps,
"pdo_pgsql",
pdo_pgsql_functions,
NULL,
PHP_MINIT(pdo_pgsql),
PHP_MSHUTDOWN(pdo_pgsql),
NULL,
Expand Down
8 changes: 1 addition & 7 deletions ext/pdo_sqlite/pdo_sqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
#include "php_pdo_sqlite_int.h"
#include "zend_exceptions.h"

/* {{{ pdo_sqlite_functions[] */
static const zend_function_entry pdo_sqlite_functions[] = {
PHP_FE_END
};
/* }}} */

/* {{{ pdo_sqlite_deps */
static const zend_module_dep pdo_sqlite_deps[] = {
ZEND_MOD_REQUIRED("pdo")
Expand All @@ -45,7 +39,7 @@ zend_module_entry pdo_sqlite_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_sqlite_deps,
"pdo_sqlite",
pdo_sqlite_functions,
NULL,
PHP_MINIT(pdo_sqlite),
PHP_MSHUTDOWN(pdo_sqlite),
NULL,
Expand Down
11 changes: 1 addition & 10 deletions ext/phar/phar.c
Original file line number Diff line number Diff line change
Expand Up @@ -3207,15 +3207,6 @@ ZEND_TSRMLS_CACHE_DEFINE()
ZEND_GET_MODULE(phar)
#endif

/* {{{ phar_functions[]
*
* Every user visible function must have an entry in phar_functions[].
*/
static const zend_function_entry phar_functions[] = {
PHP_FE_END
};
/* }}}*/

static ssize_t phar_zend_stream_reader(void *handle, char *buf, size_t len) /* {{{ */
{
return php_stream_read(phar_get_pharfp((phar_archive_data*)handle), buf, len);
Expand Down Expand Up @@ -3574,7 +3565,7 @@ zend_module_entry phar_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
phar_deps,
"Phar",
phar_functions,
NULL,
PHP_MINIT(phar),
PHP_MSHUTDOWN(phar),
NULL,
Expand Down
6 changes: 1 addition & 5 deletions ext/reflection/php_reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -6381,10 +6381,6 @@ ZEND_METHOD(ReflectionAttribute, newInstance)

RETURN_COPY_VALUE(&obj);
}
/* }}} */
static const zend_function_entry reflection_ext_functions[] = { /* {{{ */
PHP_FE_END
}; /* }}} */

/* {{{ _reflection_write_property */
static zval *_reflection_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot)
Expand Down Expand Up @@ -6558,7 +6554,7 @@ PHP_MINFO_FUNCTION(reflection) /* {{{ */
zend_module_entry reflection_module_entry = { /* {{{ */
STANDARD_MODULE_HEADER,
"Reflection",
reflection_ext_functions,
NULL,
PHP_MINIT(reflection),
NULL,
NULL,
Expand Down
11 changes: 1 addition & 10 deletions ext/xsl/php_xsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@
zend_class_entry *xsl_xsltprocessor_class_entry;
static zend_object_handlers xsl_object_handlers;

/* {{{ xsl_functions[]
*
* Every user visible function must have an entry in xsl_functions[].
*/
const zend_function_entry xsl_functions[] = {
PHP_FE_END
};
/* }}} */

static const zend_module_dep xsl_deps[] = {
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_END
Expand All @@ -46,7 +37,7 @@ zend_module_entry xsl_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
xsl_deps,
"xsl",
xsl_functions,
NULL,
PHP_MINIT(xsl),
PHP_MSHUTDOWN(xsl),
NULL,
Expand Down