summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/yp/yp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/yp/yp.c b/ext/yp/yp.c
index bbed3ef273..cc7319ef5e 100644
--- a/ext/yp/yp.c
+++ b/ext/yp/yp.c
@@ -349,17 +349,10 @@ PHP_FUNCTION(yp_err_string) {
}
/* }}} */
-static void php_yp_init_globals(YPLS_D)
-{
- YP(error) = 0;
-}
-
PHP_MINIT_FUNCTION(yp)
{
#ifdef ZTS
- yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), (ts_allocate_ctor) php_yp_init_globals, NULL);
-#else
- php_yp_init_globals(YPLS_C);
+ yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), NULL, NULL);
#endif
REGISTER_LONG_CONSTANT("YPERR_BADARGS", YPERR_BADARGS, CONST_CS | CONST_PERSISTENT);