From: Ilia Alshanetsky Date: Tue, 20 Jun 2006 22:42:42 +0000 (+0000) Subject: MFB: Removed pointless callbacks. X-Git-Tag: RELEASE_1_0_0RC1~2677 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6543cd7dcf38d101d5995f3fd79e820b6c703a8;p=php MFB: Removed pointless callbacks. --- diff --git a/ext/tokenizer/php_tokenizer.h b/ext/tokenizer/php_tokenizer.h index 6859152608..c9f2979e11 100644 --- a/ext/tokenizer/php_tokenizer.h +++ b/ext/tokenizer/php_tokenizer.h @@ -35,9 +35,6 @@ extern zend_module_entry tokenizer_module_entry; #endif PHP_MINIT_FUNCTION(tokenizer); -PHP_MSHUTDOWN_FUNCTION(tokenizer); -PHP_RINIT_FUNCTION(tokenizer); -PHP_RSHUTDOWN_FUNCTION(tokenizer); PHP_MINFO_FUNCTION(tokenizer); PHP_FUNCTION(confirm_tokenizer_compiled); /* For testing, remove later. */ diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index bb070ed8cc..ba394addb4 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -119,9 +119,9 @@ zend_module_entry tokenizer_module_entry = { "tokenizer", tokenizer_functions, PHP_MINIT(tokenizer), - PHP_MSHUTDOWN(tokenizer), - PHP_RINIT(tokenizer), /* Replace with NULL if there's nothing to do at request start */ - PHP_RSHUTDOWN(tokenizer), /* Replace with NULL if there's nothing to do at request end */ + NULL, + NULL, + NULL, PHP_MINFO(tokenizer), #if ZEND_MODULE_API_NO >= 20010901 "0.1", /* Replace with version number for your extension */ @@ -287,35 +287,6 @@ PHP_MINIT_FUNCTION(tokenizer) } /* }}} */ -/* {{{ PHP_MSHUTDOWN_FUNCTION - */ -PHP_MSHUTDOWN_FUNCTION(tokenizer) -{ - /* uncomment this line if you have INI entries - UNREGISTER_INI_ENTRIES(); - */ - return SUCCESS; -} -/* }}} */ - -/* Remove if there's nothing to do at request start */ -/* {{{ PHP_RINIT_FUNCTION - */ -PHP_RINIT_FUNCTION(tokenizer) -{ - return SUCCESS; -} -/* }}} */ - -/* Remove if there's nothing to do at request end */ -/* {{{ PHP_RSHUTDOWN_FUNCTION - */ -PHP_RSHUTDOWN_FUNCTION(tokenizer) -{ - return SUCCESS; -} -/* }}} */ - /* {{{ PHP_MINFO_FUNCTION */ PHP_MINFO_FUNCTION(tokenizer)