cvs: php4 /sapi/apache2filter sapi_apache2.c
| From: | Sterling Hughes | Date: | Thu, 29 Nov 2001 11:29:11 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8330@lists.php.net to get a copy of this message | ||
sterling Thu Nov 29 06:29:11 2001 EDT
Modified files:
/php4/sapi/apache2filter sapi_apache2.c
Log:
Update to the latest apr api (patch by Clif Woolley)
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.57 php4/sapi/apache2filter/sapi_apache2.c:1.58
--- php4/sapi/apache2filter/sapi_apache2.c:1.57 Tue Nov 13 16:40:01 2001
+++ php4/sapi/apache2filter/sapi_apache2.c Thu Nov 29 06:29:11 2001
@@ -145,7 +145,7 @@
php_apache_sapi_register_variables(zval *track_vars_array TSRMLS_DC)
{
php_struct *ctx = SG(server_context);
- apr_array_header_t *arr = apr_table_elts(ctx->f->r->subprocess_env);
+ const apr_array_header_t *arr = apr_table_elts(ctx->f->r->subprocess_env);
char *key, *val;
APR_ARRAY_FOREACH_OPEN(arr, key, val)
@@ -419,7 +419,7 @@
}
}
-static void
+static int
php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog,
apr_pool_t *ptemp, server_rec *s)
{
@@ -429,6 +429,8 @@
apr_pool_cleanup_register(pconf, NULL, php_apache_server_shutdown, apr_pool_cleanup_null);
php_apache_register_module();
php_apache_add_version(pconf);
+
+ return OK;
}
static void php_add_filter(request_rec *r, ap_filter_t *f)