Sitelet https://github.com/phpredis/phpredis/commit/c760bf
Skip to content

Commit c760bf6

Browse files
committed
Remove PHP_RINIT and PHP_RSHUTDOWN
Since we don't do anything while request start/end we may safely remove PHP_RINIT and PHP_RSHUTDOWN functions.
1 parent 26230d2 commit c760bf6

2 files changed

Lines changed: 2 additions & 20 deletions

File tree

‎php_redis.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ PHP_METHOD(Redis, getMode);
237237

238238
PHP_MINIT_FUNCTION(redis);
239239
PHP_MSHUTDOWN_FUNCTION(redis);
240-
PHP_RINIT_FUNCTION(redis);
241-
PHP_RSHUTDOWN_FUNCTION(redis);
242240
PHP_MINFO_FUNCTION(redis);
243241

244242
/* Redis response handler function callback prototype */

‎redis.c‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ zend_module_entry redis_module_entry = {
523523
NULL,
524524
PHP_MINIT(redis),
525525
PHP_MSHUTDOWN(redis),
526-
PHP_RINIT(redis),
527-
PHP_RSHUTDOWN(redis),
526+
NULL,
527+
NULL,
528528
PHP_MINFO(redis),
529529
#if ZEND_MODULE_API_NO >= 20010901
530530
PHP_REDIS_VERSION,
@@ -867,22 +867,6 @@ PHP_MSHUTDOWN_FUNCTION(redis)
867867
return SUCCESS;
868868
}
869869

870-
/**
871-
* PHP_RINIT_FUNCTION
872-
*/
873-
PHP_RINIT_FUNCTION(redis)
874-
{
875-
return SUCCESS;
876-
}
877-
878-
/**
879-
* PHP_RSHUTDOWN_FUNCTION
880-
*/
881-
PHP_RSHUTDOWN_FUNCTION(redis)
882-
{
883-
return SUCCESS;
884-
}
885-
886870
/**
887871
* PHP_MINFO_FUNCTION
888872
*/

0 commit comments

Comments
 (0)