Skip to content

Commit

Permalink
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Aug 6, 2011
1 parent 786d8e7 commit 707a8f7
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 21 deletions.
2 changes: 2 additions & 0 deletions Zend/zend_modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ struct _zend_module_entry {
#define ZEND_MOD_CONFLICTS(name) ZEND_MOD_CONFLICTS_EX(name, NULL, NULL)
#define ZEND_MOD_OPTIONAL(name) ZEND_MOD_OPTIONAL_EX(name, NULL, NULL)

#define ZEND_MOD_END { NULL, NULL, NULL, 0 }

struct _zend_module_dep {
const char *name; /* module name */
const char *rel; /* version relationship: NULL (exists), lt|le|eq|ge|gt (to given version) */
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ static zend_object_handlers* dom_get_obj_handlers(TSRMLS_D) {
static const zend_module_dep dom_deps[] = {
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_CONFLICTS("domxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};

zend_module_entry dom_module_entry = { /* {{{ */
Expand Down
2 changes: 1 addition & 1 deletion ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ PHP_MSHUTDOWN_FUNCTION(exif)
static const zend_module_dep exif_module_deps[] = {
ZEND_MOD_REQUIRED("standard")
ZEND_MOD_OPTIONAL("mbstring")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/imap/php_imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ const zend_function_entry imap_functions[] = {
/* {{{ imap dependencies */
static const zend_module_dep imap_deps[] = {
ZEND_MOD_REQUIRED("standard")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/mysql/php_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static const zend_module_dep mysql_deps[] = {
#if defined(MYSQL_USE_MYSQLND)
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};

/* {{{ mysql_module_entry
Expand Down
2 changes: 1 addition & 1 deletion ext/mysqli/mysqli.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ static const zend_module_dep mysqli_deps[] = {
#if defined(MYSQLI_USE_MYSQLND)
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};

/* {{{ mysqli_module_entry
Expand Down
2 changes: 1 addition & 1 deletion ext/mysqlnd/php_mysqlnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static PHP_RSHUTDOWN_FUNCTION(mysqlnd)

static const zend_module_dep mysqlnd_deps[] = {
ZEND_MOD_REQUIRED("standard")
{NULL, NULL, NULL}
ZEND_MOD_END
};

/* {{{ mysqlnd_module_entry
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo/pdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static const zend_module_dep pdo_deps[] = {
#ifdef HAVE_SPL
ZEND_MOD_REQUIRED("spl")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_dblib/pdo_dblib.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const zend_function_entry pdo_dblib_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_dblib_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_firebird/pdo_firebird.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const zend_function_entry pdo_firebird_functions[] = { /* {{{ */
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_firebird_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_mysql/pdo_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static const zend_module_dep pdo_mysql_deps[] = {
#ifdef PDO_USE_MYSQLND
ZEND_MOD_REQUIRED("mysqlnd")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_oci/pdo_oci.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const zend_function_entry pdo_oci_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_oci_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_odbc/pdo_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const zend_function_entry pdo_odbc_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_odbc_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_pgsql/pdo_pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const zend_function_entry pdo_pgsql_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_pgsql_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_sqlite/pdo_sqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const zend_function_entry pdo_sqlite_functions[] = {
#if ZEND_MODULE_API_NO >= 20050922
static const zend_module_dep pdo_sqlite_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/phar.c
Original file line number Diff line number Diff line change
Expand Up @@ -3719,7 +3719,7 @@ static const zend_module_dep phar_deps[] = {
#if HAVE_SPL
ZEND_MOD_REQUIRED("spl")
#endif
{NULL, NULL, NULL}
ZEND_MOD_END
};

zend_module_entry phar_module_entry = {
Expand Down
2 changes: 1 addition & 1 deletion ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ static PHP_MINFO_FUNCTION(session) /* {{{ */
static const zend_module_dep session_deps[] = { /* {{{ */
ZEND_MOD_OPTIONAL("hash")
ZEND_MOD_REQUIRED("spl")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/simplexml/simplexml.c
Original file line number Diff line number Diff line change
Expand Up @@ -2553,7 +2553,7 @@ const zend_function_entry simplexml_functions[] = { /* {{{ */
static const zend_module_dep simplexml_deps[] = { /* {{{ */
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_REQUIRED("spl")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/basic_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -3381,7 +3381,7 @@ const zend_function_entry basic_functions[] = { /* {{{ */

static const zend_module_dep standard_deps[] = { /* {{{ */
ZEND_MOD_OPTIONAL("session")
{NULL, NULL, NULL}
ZEND_MOD_END
};
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/xml/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const zend_function_entry xml_functions[] = {
#ifdef LIBXML_EXPAT_COMPAT
static const zend_module_dep xml_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};
#endif

Expand Down
2 changes: 1 addition & 1 deletion ext/xmlreader/php_xmlreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static xmlRelaxNGPtr _xmlreader_get_relaxNG(char *source, int source_len, int ty

static const zend_module_dep xmlreader_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};

/* {{{ xmlreader_module_entry
Expand Down
2 changes: 1 addition & 1 deletion ext/xsl/php_xsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const zend_function_entry xsl_functions[] = {

static const zend_module_dep xsl_deps[] = {
ZEND_MOD_REQUIRED("libxml")
{NULL, NULL, NULL}
ZEND_MOD_END
};

/* {{{ xsl_module_entry
Expand Down

0 comments on commit 707a8f7

Please sign in to comment.