Browse Source

upgrade apache2filter to php6

migration/RELEASE_1_0_0
Antony Dovgal 20 years ago
parent
commit
a4f5b662a3
  1. 6
      sapi/apache2filter/config.m4
  2. 2
      sapi/apache2filter/php.sym
  3. 2
      sapi/apache2filter/php_apache.h
  4. 4
      sapi/apache2filter/sapi_apache2.c

6
sapi/apache2filter/config.m4

@ -69,14 +69,14 @@ AC_ARG_WITH(apxs2filter,
if test -z `$APXS -q SYSCONFDIR`; then
INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
-i -n php5"
-i -n php6"
else
APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
\$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
-S SYSCONFDIR='$APXS_SYSCONFDIR' \
-i -a -n php5"
-i -a -n php6"
fi
case $host_alias in
@ -99,7 +99,7 @@ AC_ARG_WITH(apxs2filter,
MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
PHP_SUBST(MH_BUNDLE_FLAGS)
PHP_SELECT_SAPI(apache2filter, bundle, sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS)
SAPI_SHARED=libs/libphp5.so
SAPI_SHARED=libs/libphp6.so
INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
;;
*beos*)

2
sapi/apache2filter/php.sym

@ -1 +1 @@
php5_module
php6_module

2
sapi/apache2filter/php_apache.h

@ -26,7 +26,7 @@
#include "http_core.h"
/* Declare this so we can get to it from outside the sapi_apache2.c file */
extern module AP_MODULE_DECLARE_DATA php5_module;
extern module AP_MODULE_DECLARE_DATA php6_module;
/* A way to specify the location of the php.ini dir in an apache directive */
extern char *apache2_php_ini_path_override;

4
sapi/apache2filter/sapi_apache2.c

@ -440,7 +440,7 @@ static int php_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
{
php_struct *ctx;
apr_bucket *b;
void *conf = ap_get_module_config(f->r->per_dir_config, &php5_module);
void *conf = ap_get_module_config(f->r->per_dir_config, &php6_module);
char *p = get_php_config(conf, "engine", sizeof("engine"));
TSRMLS_FETCH();
@ -701,7 +701,7 @@ static void php_register_hook(apr_pool_t *p)
ap_register_input_filter("PHP", php_input_filter, php_apache_disable_caching, AP_FTYPE_RESOURCE);
}
AP_MODULE_DECLARE_DATA module php5_module = {
AP_MODULE_DECLARE_DATA module php6_module = {
STANDARD20_MODULE_STUFF,
create_php_config, /* create per-directory config structure */
merge_php_config, /* merge per-directory config structures */

Loading…
Cancel
Save