File tree 4 files changed +38
-6
lines changed
4 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 6
6
. Fixed memory leak in substr_replace. (Pierrick)
7
7
. make max_file_uploads ini directive settable outside of php.ini (Rasmus)
8
8
9
+ - Installation
10
+ . Fixed bug #61172 (Add Apache 2.4 support). (Chris Jones)
11
+
9
12
01 Mar 2012, PHP 5.4.0
10
13
11
14
- Installation:
Original file line number Diff line number Diff line change @@ -1587,6 +1587,21 @@ cat <<X
1587
1587
X
1588
1588
fi
1589
1589
1590
+ if test "$PHP_SAPI" = "apache2handler" || test "$PHP_SAPI" = "apache2filter"; then
1591
+ if test "$APACHE_VERSION" -ge 2004001; then
1592
+ if test -z "$APACHE_THREADED_MPM"; then
1593
+ cat <<X
1594
+ +--------------------------------------------------------------------+
1595
+ | *** WARNING *** |
1596
+ | |
1597
+ | You have built PHP for Apache's current non-threaded MPM. |
1598
+ | If you change Apache to use a threaded MPM you must reconfigure |
1599
+ | PHP with --enable-maintainer-zts |
1600
+ X
1601
+ fi
1602
+ fi
1603
+ fi
1604
+
1590
1605
# Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
1591
1606
if test "$PHP_OCI8" != "no"; then
1592
1607
if test "$PHP_SAPI" = "apache"; then
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ if test "$PHP_APXS2FILTER" != "no"; then
39
39
APXS_BINDIR=`$APXS -q BINDIR`
40
40
APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
41
41
APXS_CFLAGS=`$APXS -q CFLAGS`
42
- APXS_MPM=`$APXS -q MPM_NAME`
43
42
APU_BINDIR=`$APXS -q APU_BINDIR`
44
43
APR_BINDIR=`$APXS -q APR_BINDIR`
45
44
@@ -118,8 +117,16 @@ if test "$PHP_APXS2FILTER" != "no"; then
118
117
;;
119
118
esac
120
119
121
- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser"; then
122
- PHP_BUILD_THREAD_SAFE
120
+ if test "$APACHE_VERSION" -lt 2004001; then
121
+ APXS_MPM=`$APXS -q MPM_NAME`
122
+ if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
123
+ PHP_BUILD_THREAD_SAFE
124
+ fi
125
+ else
126
+ APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
127
+ if test -n "$APACHE_THREADED_MPM"; then
128
+ PHP_BUILD_THREAD_SAFE
129
+ fi
123
130
fi
124
131
AC_MSG_RESULT ( yes )
125
132
PHP_SUBST(APXS)
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ if test "$PHP_APXS2" != "no"; then
38
38
APXS_BINDIR=`$APXS -q BINDIR`
39
39
APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
40
40
APXS_CFLAGS=`$APXS -q CFLAGS`
41
- APXS_MPM=`$APXS -q MPM_NAME`
42
41
APU_BINDIR=`$APXS -q APU_BINDIR`
43
42
APR_BINDIR=`$APXS -q APR_BINDIR`
44
43
@@ -117,8 +116,16 @@ if test "$PHP_APXS2" != "no"; then
117
116
;;
118
117
esac
119
118
120
- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
121
- PHP_BUILD_THREAD_SAFE
119
+ if test "$APACHE_VERSION" -lt 2004001; then
120
+ APXS_MPM=`$APXS -q MPM_NAME`
121
+ if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
122
+ PHP_BUILD_THREAD_SAFE
123
+ fi
124
+ else
125
+ APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
126
+ if test -n "$APACHE_THREADED_MPM"; then
127
+ PHP_BUILD_THREAD_SAFE
128
+ fi
122
129
fi
123
130
AC_MSG_RESULT ( yes )
124
131
PHP_SUBST(APXS)
You can’t perform that action at this time.
0 commit comments