Skip to content

Commit e8d2c94

Browse files
committed
MFH: nuke skeleton leftovers
1 parent b865d17 commit e8d2c94

File tree

7 files changed

+2
-76
lines changed

7 files changed

+2
-76
lines changed

ext/ctype/ctype.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,8 @@
2828

2929
#include <ctype.h>
3030

31-
/* You should tweak config.m4 so this symbol (or some else suitable)
32-
gets defined.
33-
*/
3431
#if HAVE_CTYPE
3532

36-
/* If you declare any globals in php_ctype.h uncomment this:
37-
ZEND_DECLARE_MODULE_GLOBALS(ctype)
38-
*/
39-
40-
/* True global resources - no need for thread safety here */
41-
/* static int le_ctype; */
42-
4333
static PHP_MINFO_FUNCTION(ctype);
4434

4535
static PHP_FUNCTION(ctype_alnum);

ext/gmp/gmp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,6 @@ ZEND_MODULE_INFO_D(gmp)
424424
php_info_print_table_start();
425425
php_info_print_table_row(2, "gmp support", "enabled");
426426
php_info_print_table_end();
427-
428-
/* Remove comments if you have entries in php.ini
429-
DISPLAY_INI_ENTRIES();
430-
*/
431427
}
432428
/* }}} */
433429

ext/json/json.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ static PHP_MINFO_FUNCTION(json);
3535
static PHP_FUNCTION(json_encode);
3636
static PHP_FUNCTION(json_decode);
3737

38-
/* If you declare any globals in php_json.h uncomment this:
39-
ZEND_DECLARE_MODULE_GLOBALS(json)
40-
*/
4138
static const char digits[] = "0123456789abcdef";
4239

4340
/* {{{ json_functions[]

ext/ncurses/ncurses.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ PHP_MINFO_FUNCTION(ncurses)
277277
php_info_print_table_row(2, "color support", "no");
278278
#endif
279279
php_info_print_table_end();
280-
281-
/* Remove comments if you have entries in php.ini
282-
DISPLAY_INI_ENTRIES();
283-
*/
284280
}
285281
/* }}} */
286282

ext/tokenizer/tokenizer.c

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ struct yy_buffer_state
9292

9393
#define zendtext LANG_SCNG(yy_text)
9494
#define zendleng LANG_SCNG(yy_leng)
95-
/* If you declare any globals in php_tokenizer.h uncomment this:
96-
ZEND_DECLARE_MODULE_GLOBALS(tokenizer)
97-
*/
98-
99-
/* True global resources - no need for thread safety here */
100-
/* static int le_tokenizer; */
10195

10296
/* {{{ tokenizer_functions[]
10397
*
@@ -134,35 +128,10 @@ zend_module_entry tokenizer_module_entry = {
134128
ZEND_GET_MODULE(tokenizer)
135129
#endif
136130

137-
/* {{{ PHP_INI
138-
*/
139-
/* Remove comments and fill if you need to have entries in php.ini
140-
PHP_INI_BEGIN()
141-
STD_PHP_INI_ENTRY("tokenizer.global_value", "42", PHP_INI_ALL, OnUpdateLong, global_value, zend_tokenizer_globals, tokenizer_globals)
142-
STD_PHP_INI_ENTRY("tokenizer.global_string", "foobar", PHP_INI_ALL, OnUpdateString, global_string, zend_tokenizer_globals, tokenizer_globals)
143-
PHP_INI_END()
144-
*/
145-
/* }}} */
146-
147-
/* {{{ PHP_GINIT_FUNCTION
148-
*/
149-
/* Uncomment this function if you have INI entries
150-
static PHP_GINIT_FUNCTION(tokenizer)
151-
{
152-
tokenizer_globals->global_value = 0;
153-
tokenizer_globals->global_string = NULL;
154-
}
155-
*/
156-
/* }}} */
157-
158131
/* {{{ PHP_MINIT_FUNCTION
159132
*/
160133
PHP_MINIT_FUNCTION(tokenizer)
161134
{
162-
/* If you have INI entries, uncomment these lines
163-
REGISTER_INI_ENTRIES();
164-
*/
165-
166135
REGISTER_LONG_CONSTANT("T_INCLUDE", T_INCLUDE, CONST_CS | CONST_PERSISTENT);
167136
REGISTER_LONG_CONSTANT("T_INCLUDE_ONCE", T_INCLUDE_ONCE, CONST_CS | CONST_PERSISTENT);
168137
REGISTER_LONG_CONSTANT("T_EVAL", T_EVAL, CONST_CS | CONST_PERSISTENT);
@@ -294,10 +263,6 @@ PHP_MINFO_FUNCTION(tokenizer)
294263
php_info_print_table_start();
295264
php_info_print_table_row(2, "Tokenizer Support", "enabled");
296265
php_info_print_table_end();
297-
298-
/* Remove comments if you have entries in php.ini
299-
DISPLAY_INI_ENTRIES();
300-
*/
301266
}
302267
/* }}} */
303268

ext/xmlreader/php_xmlreader.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,6 @@ PHP_MINIT_FUNCTION(xmlreader)
12741274
}
12751275
/* }}} */
12761276

1277-
12781277
/* {{{ PHP_MSHUTDOWN_FUNCTION
12791278
*/
12801279
PHP_MSHUTDOWN_FUNCTION(xmlreader)
@@ -1293,10 +1292,6 @@ PHP_MINFO_FUNCTION(xmlreader)
12931292
php_info_print_table_row(2, "XMLReader", "enabled");
12941293
}
12951294
php_info_print_table_end();
1296-
1297-
/* Remove comments if you have entries in php.ini
1298-
DISPLAY_INI_ENTRIES();
1299-
*/
13001295
}
13011296
/* }}} */
13021297

ext/xsl/php_xsl.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#include "php_xsl.h"
2929

3030

31-
/* If you declare any globals in php_xsl.h uncomment this:
32-
ZEND_DECLARE_MODULE_GLOBALS(xsl)
33-
*/
3431
zend_class_entry *xsl_xsltprocessor_class_entry;
3532
static zend_object_handlers xsl_object_handlers;
3633

@@ -253,10 +250,6 @@ zval *php_xsl_create_object(xsltStylesheetPtr obj, int *found, zval *wrapper_in,
253250
*/
254251
PHP_MSHUTDOWN_FUNCTION(xsl)
255252
{
256-
/* uncomment this line if you have INI entries
257-
UNREGISTER_INI_ENTRIES();
258-
*/
259-
260253
xsltUnregisterExtModuleFunction ((const xmlChar *) "functionString",
261254
(const xmlChar *) "http://php.net/xsl");
262255
xsltUnregisterExtModuleFunction ((const xmlChar *) "function",
@@ -268,7 +261,6 @@ PHP_MSHUTDOWN_FUNCTION(xsl)
268261
}
269262
/* }}} */
270263

271-
/* Remove if there's nothing to do at request start */
272264
/* {{{ PHP_RINIT_FUNCTION
273265
*/
274266
PHP_RINIT_FUNCTION(xsl)
@@ -278,7 +270,6 @@ PHP_RINIT_FUNCTION(xsl)
278270
}
279271
/* }}} */
280272

281-
/* Remove if there's nothing to do at request end */
282273
/* {{{ PHP_RSHUTDOWN_FUNCTION
283274
*/
284275
PHP_RSHUTDOWN_FUNCTION(xsl)
@@ -310,14 +301,10 @@ PHP_MINFO_FUNCTION(xsl)
310301
php_info_print_table_row(2, "libxslt compiled against libxml Version", buffer);
311302
}
312303
#if HAVE_XSL_EXSLT
313-
php_info_print_table_row(2, "EXSLT", "enabled");
314-
php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION);
304+
php_info_print_table_row(2, "EXSLT", "enabled");
305+
php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION);
315306
#endif
316307
php_info_print_table_end();
317-
318-
/* Remove comments if you have entries in php.ini
319-
DISPLAY_INI_ENTRIES();
320-
*/
321308
}
322309
/* }}} */
323310

0 commit comments

Comments
 (0)