Skip to content

Commit f40aa95

Browse files
committed
PHPC-254: Remove unused RINIT and RSHUTDOWN handlers
1 parent 6d1e2b7 commit f40aa95

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

php_phongo.c

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,26 +1848,6 @@ PHP_MINIT_FUNCTION(mongodb)
18481848
}
18491849
/* }}} */
18501850

1851-
/* {{{ PHP_RINIT_FUNCTION */
1852-
PHP_RINIT_FUNCTION(mongodb)
1853-
{
1854-
(void)type; /* We don't care if we are loaded via dl() or extension= */
1855-
(void)module_number; /* Really doesn't matter which module number we are */
1856-
1857-
return SUCCESS;
1858-
}
1859-
/* }}} */
1860-
1861-
/* {{{ PHP_RSHUTDOWN_FUNCTION */
1862-
PHP_RSHUTDOWN_FUNCTION(mongodb)
1863-
{
1864-
(void)type; /* We don't care if we are loaded via dl() or extension= */
1865-
(void)module_number; /* Really doesn't matter which module number we are */
1866-
1867-
return SUCCESS;
1868-
}
1869-
/* }}} */
1870-
18711851
/* {{{ PHP_MSHUTDOWN_FUNCTION */
18721852
PHP_MSHUTDOWN_FUNCTION(mongodb)
18731853
{
@@ -1942,8 +1922,8 @@ zend_module_entry mongodb_module_entry = {
19421922
mongodb_functions,
19431923
PHP_MINIT(mongodb),
19441924
PHP_MSHUTDOWN(mongodb),
1945-
PHP_RINIT(mongodb),
1946-
PHP_RSHUTDOWN(mongodb),
1925+
NULL /* PHP_RINIT(mongodb)*/,
1926+
NULL /* PHP_RSHUTDOWN(mongodb)*/,
19471927
PHP_MINFO(mongodb),
19481928
MONGODB_VERSION,
19491929
PHP_MODULE_GLOBALS(mongodb),

0 commit comments

Comments
 (0)