Skip to content

Commit dd53efc

Browse files
author
foobar
committed
- Made the STANDARD_SAPI_MODULE_PROPERTIES be what it says it is.
1 parent 95b4045 commit dd53efc

File tree

18 files changed

+8
-52
lines changed

18 files changed

+8
-52
lines changed

main/SAPI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ struct _sapi_module_struct {
215215
void (*register_server_variables)(zval *track_vars_array TSRMLS_DC);
216216
void (*log_message)(char *message);
217217

218+
218219
char *php_ini_path_override;
219220

220221
void (*block_interruptions)(void);
221222
void (*unblock_interruptions)(void);
222223

223-
224224
void (*default_post_reader)(TSRMLS_D);
225225
void (*treat_data)(int arg, char *str, zval *destArray TSRMLS_DC);
226226
char *executable_location;
@@ -262,7 +262,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data);
262262
SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader);
263263
SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data);
264264

265-
#define STANDARD_SAPI_MODULE_PROPERTIES NULL, NULL, 0
265+
#define STANDARD_SAPI_MODULE_PROPERTIES NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL
266266

267267
#endif /* SAPI_H */
268268

sapi/activescript/php4activescript.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ sapi_module_struct activescript_sapi_module = {
118118
sapi_activescript_register_server_variables, /* register server variables */
119119
NULL, /* Log message */
120120

121-
NULL, /* Block interruptions */
122-
NULL, /* Unblock interruptions */
123-
124121
STANDARD_SAPI_MODULE_PROPERTIES
125122
};
126123

sapi/aolserver/aolserver.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ static sapi_module_struct aolserver_sapi_module = {
388388
php_ns_sapi_register_variables,
389389
NULL, /* Log message */
390390

391-
NULL, /* php.ini path override */
392-
393-
NULL, /* Block interruptions */
394-
NULL, /* Unblock interruptions */
395-
396391
STANDARD_SAPI_MODULE_PROPERTIES
397392
};
398393

sapi/apache2filter/sapi_apache2.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,6 @@ static sapi_module_struct apache2_sapi_module = {
299299
php_apache_sapi_register_variables,
300300
php_apache_sapi_log_message, /* Log message */
301301

302-
NULL, /* php_ini_path_override */
303-
304-
NULL, /* Block interruptions */
305-
NULL, /* Unblock interruptions */
306-
307302
STANDARD_SAPI_MODULE_PROPERTIES
308303
};
309304

sapi/apache_hooks/mod_php4.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,12 @@ static sapi_module_struct apache_sapi_module = {
540540
unblock_alarms, /* Unblock interruptions */
541541
#endif
542542

543-
STANDARD_SAPI_MODULE_PROPERTIES
543+
NULL, /* default post reader */
544+
NULL, /* treat data */
545+
NULL, /* exe location */
546+
0, /* ini ignore */
547+
NULL
548+
544549
};
545550
/* }}} */
546551

sapi/caudium/caudium.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,6 @@ static sapi_module_struct caudium_sapi_module = {
550550
php_caudium_sapi_read_cookies, /* read cookies */
551551
sapi_caudium_register_variables, /* register server variables */
552552
NULL, /* Log message */
553-
NULL, /* Block interruptions */
554-
NULL, /* Unblock interruptions */
555553

556554
STANDARD_SAPI_MODULE_PROPERTIES
557555
};

sapi/cgi/cgi_main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,6 @@ static sapi_module_struct cgi_sapi_module = {
445445
sapi_cgi_register_variables, /* register server variables */
446446
sapi_cgi_log_message, /* Log message */
447447

448-
NULL, /* Block interruptions */
449-
NULL, /* Unblock interruptions */
450-
451448
STANDARD_SAPI_MODULE_PROPERTIES
452449
};
453450
/* }}} */

sapi/cli/php_cli.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ static sapi_module_struct cli_sapi_module = {
277277
sapi_cli_register_variables, /* register server variables */
278278
sapi_cli_log_message, /* Log message */
279279

280-
NULL, /* Block interruptions */
281-
NULL, /* Unblock interruptions */
282-
283280
STANDARD_SAPI_MODULE_PROPERTIES
284281
};
285282
/* }}} */

sapi/embed/php_embed.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ static sapi_module_struct php_embed_module = {
126126
php_embed_register_variables, /* register server variables */
127127
php_embed_log_message, /* Log message */
128128

129-
NULL, /* Block interruptions */
130-
NULL, /* Unblock interruptions */
131-
132129
STANDARD_SAPI_MODULE_PROPERTIES
133130
};
134131
/* }}} */

sapi/fastcgi/fastcgi.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ static sapi_module_struct fastcgi_sapi_module = {
209209
sapi_fastcgi_register_variables,
210210
sapi_fastcgi_log_message,
211211

212-
NULL, /* Block interruptions */
213-
NULL, /* Unblock interruptions */
214-
215212
STANDARD_SAPI_MODULE_PROPERTIES
216213
};
217214

0 commit comments

Comments
 (0)