Skip to content

Commit e351aed

Browse files
committed
MFH
1 parent e8d2c94 commit e351aed

File tree

5 files changed

+4
-74
lines changed

5 files changed

+4
-74
lines changed

ext/ctype/php_ctype.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
#ifndef PHP_CTYPE_H
2020
#define PHP_CTYPE_H
2121

22-
/* You should tweak config.m4 so this symbol (or some else suitable)
23-
gets defined.
24-
*/
2522
#if HAVE_CTYPE
2623

2724
extern zend_module_entry ctype_module_entry;
@@ -33,21 +30,6 @@ extern zend_module_entry ctype_module_entry;
3330
#define PHP_CTYPE_API
3431
#endif
3532

36-
/*
37-
Declare any global variables you may need between the BEGIN
38-
and END macros here:
39-
40-
ZEND_BEGIN_MODULE_GLOBALS(ctype)
41-
int global_variable;
42-
ZEND_END_MODULE_GLOBALS(ctype)
43-
*/
44-
45-
#ifdef ZTS
46-
#define CTYPEG(v) TSRMG(ctype_globals_id, php_ctype_globals *, v)
47-
#else
48-
#define CTYPEG(v) (ctype_globals.v)
49-
#endif
50-
5133
#else
5234

5335
#define phpext_ctype_ptr NULL

ext/gmp/gmp.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ zend_module_entry gmp_module_entry = {
324324
"gmp",
325325
gmp_functions,
326326
ZEND_MODULE_STARTUP_N(gmp),
327-
ZEND_MODULE_SHUTDOWN_N(gmp),
327+
NULL,
328328
NULL,
329329
ZEND_MODULE_DEACTIVATE_N(gmp),
330330
ZEND_MODULE_INFO_N(gmp),
@@ -409,14 +409,6 @@ ZEND_MODULE_DEACTIVATE_D(gmp)
409409
}
410410
/* }}} */
411411

412-
/* {{{ ZEND_MSHUTDOWN_FUNCTION
413-
*/
414-
ZEND_MODULE_SHUTDOWN_D(gmp)
415-
{
416-
return SUCCESS;
417-
}
418-
/* }}} */
419-
420412
/* {{{ ZEND_MINFO_FUNCTION
421413
*/
422414
ZEND_MODULE_INFO_D(gmp)

ext/gmp/php_gmp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extern zend_module_entry gmp_module_entry;
3333
#endif
3434

3535
ZEND_MODULE_STARTUP_D(gmp);
36-
ZEND_MODULE_SHUTDOWN_D(gmp);
3736
ZEND_MODULE_DEACTIVATE_D(gmp);
3837
ZEND_MODULE_INFO_D(gmp);
3938

ext/xmlrpc/php_xmlrpc.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656
#ifndef _PHP_XMLRPC_H
5757
#define _PHP_XMLRPC_H
5858

59-
/* You should tweak config.m4 so this symbol (or some else suitable)
60-
gets defined.
61-
*/
6259
#if 1 /* HAVE_XMLRPC */
6360

6461
extern zend_module_entry xmlrpc_module_entry;
@@ -71,9 +68,6 @@ extern zend_module_entry xmlrpc_module_entry;
7168
#endif
7269

7370
PHP_MINIT_FUNCTION(xmlrpc);
74-
PHP_MSHUTDOWN_FUNCTION(xmlrpc);
75-
PHP_RINIT_FUNCTION(xmlrpc);
76-
PHP_RSHUTDOWN_FUNCTION(xmlrpc);
7771
PHP_MINFO_FUNCTION(xmlrpc);
7872

7973
PHP_FUNCTION(xmlrpc_encode);
@@ -91,20 +85,6 @@ PHP_FUNCTION(xmlrpc_parse_method_descriptions);
9185
PHP_FUNCTION(xmlrpc_server_add_introspection_data);
9286
PHP_FUNCTION(xmlrpc_server_register_introspection_callback);
9387

94-
/* Fill in this structure and use entries in it
95-
for thread safety instead of using true globals.
96-
*/
97-
typedef struct {
98-
int x; /* fix error in msvc, cannot have empty structs */
99-
} zend_xmlrpc_globals;
100-
101-
/* In every function that needs to use variables in zend_xmlrpc_globals,
102-
do call XMLRPCLS_FETCH(); after declaring other variables used by
103-
that function, and always refer to them as XMLRPCG(variable).
104-
You are encouraged to rename these macros something shorter, see
105-
examples in any other php module directory.
106-
*/
107-
10888
#else
10989

11090
#define phpext_xmlrpc_ptr NULL

ext/xmlrpc/xmlrpc-epi-php.c

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@
7373

7474
#define PHP_EXT_VERSION "0.51"
7575

76-
/* You should tweak config.m4 so this symbol (or some else suitable)
77-
gets defined. */
78-
79-
ZEND_DECLARE_MODULE_GLOBALS(xmlrpc)
80-
8176
static int le_xmlrpc_server;
8277

8378
zend_function_entry xmlrpc_functions[] = {
@@ -103,9 +98,9 @@ zend_module_entry xmlrpc_module_entry = {
10398
"xmlrpc",
10499
xmlrpc_functions,
105100
PHP_MINIT(xmlrpc),
106-
PHP_MSHUTDOWN(xmlrpc),
107-
PHP_RINIT(xmlrpc), /* Replace with NULL if there's nothing to do at request start */
108-
PHP_RSHUTDOWN(xmlrpc), /* Replace with NULL if there's nothing to do at request end */
101+
NULL,
102+
NULL,
103+
NULL,
109104
PHP_MINFO(xmlrpc),
110105
PHP_EXT_VERSION,
111106
STANDARD_MODULE_PROPERTIES
@@ -236,24 +231,6 @@ PHP_MINIT_FUNCTION(xmlrpc)
236231
return SUCCESS;
237232
}
238233

239-
/* module shutdown */
240-
PHP_MSHUTDOWN_FUNCTION(xmlrpc)
241-
{
242-
return SUCCESS;
243-
}
244-
245-
/* Remove if there's nothing to do at request start */
246-
PHP_RINIT_FUNCTION(xmlrpc)
247-
{
248-
return SUCCESS;
249-
}
250-
251-
/* Remove if there's nothing to do at request end */
252-
PHP_RSHUTDOWN_FUNCTION(xmlrpc)
253-
{
254-
return SUCCESS;
255-
}
256-
257234
/* display info in phpinfo() */
258235
PHP_MINFO_FUNCTION(xmlrpc)
259236
{

0 commit comments

Comments
 (0)