Hello community,

here is the log from the commit of package php5 for openSUSE:Factory checked in 
at 2013-08-01 17:33:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php5 (Old)
 and      /work/SRC/openSUSE:Factory/.php5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "php5"

Changes:
--------
--- /work/SRC/openSUSE:Factory/php5/php5.changes        2013-07-16 
16:10:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.php5.new/php5.changes   2013-08-01 
17:33:44.000000000 +0200
@@ -1,0 +2,10 @@
+Wed Jul 31 01:21:24 UTC 2013 - crrodrig...@opensuse.org
+
+- php5-per-mod-log.patch Support apache 2.4 per module logging 
+- php5-apache24-updates.patch Use proper API in apache 2.4 
+  to determine when the module has to be loaded.
+  I made this patches at least a year ago, but for some reason
+  they went out of my radar and were not applied to upstream
+  Will be submitted again soon.
+
+-------------------------------------------------------------------

New:
----
  php5-apache24-updates.patch
  php5-per-mod-log.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ php5.spec ++++++
--- /var/tmp/diff_new_pack.ss0mpD/_old  2013-08-01 17:33:45.000000000 +0200
+++ /var/tmp/diff_new_pack.ss0mpD/_new  2013-08-01 17:33:45.000000000 +0200
@@ -171,6 +171,8 @@
 Patch18:        php5-format-string-issues.patch
 # following patch connected fixes or workarounds 
https://bugs.php.net/bug.php?id=44522
 Patch19:        php5-64-bit-post-large-files.patch
+Patch20:        php5-per-mod-log.patch
+Patch21:        php5-apache24-updates.patch
 Url:            http://www.php.net
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Summary:        PHP5 Core Files
@@ -1299,6 +1301,9 @@
 %patch17
 %patch18
 %patch19 -p1
+%patch20 -p1
+%patch21 -p1
+
 # Safety check for API version change.
 vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
 if test "x${vapi}" != "x%{apiver}"; then


++++++ php5-apache24-updates.patch ++++++
commit 918a01f55b5e0a82c1a2e886143a56eddffe6649
Author: Cristian Rodríguez <crrodrig...@opensuse.org>
Date:   Wed Aug 8 19:30:04 2012 +0200

    sapi/apache2*: Use ap_state_query where possible instead of old method of 
creating a pool userdata entry.

diff --git a/sapi/apache2filter/sapi_apache2.c 
b/sapi/apache2filter/sapi_apache2.c
index a8fec5c..21f2fa3 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -606,11 +606,17 @@ static int
 php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog,
                           apr_pool_t *ptemp, server_rec *s)
 {
+
+#if AP_MODULE_MAGIC_AT_LEAST(20110203,1)
+        /* Apache will load, unload and then reload a DSO module. This
+         * prevents us from starting PHP until the second load. */
+         if (ap_state_query(AP_SQ_MAIN_STATE) == AP_SQ_MS_CREATE_PRE_CONFIG) {
+                return OK;
+         }
+#else
        void *data = NULL;
        const char *userdata_key = "apache2filter_post_config";
 
-       /* Apache will load, unload and then reload a DSO module. This
-        * prevents us from starting PHP until the second load. */
        apr_pool_userdata_get(&data, userdata_key, s->process->pool);
        if (data == NULL) {
                /* We must use set() here and *not* setn(), otherwise the
@@ -622,6 +628,7 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t 
*plog,
                                                          
apr_pool_cleanup_null, s->process->pool);
                return OK;
        }
+#endif
 
        /* Set up our overridden path. */
        if (apache2_php_ini_path_override) {
diff --git a/sapi/apache2handler/sapi_apache2.c 
b/sapi/apache2handler/sapi_apache2.c
index 900a3a4..a578740 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -430,12 +430,19 @@ static int php_pre_config(apr_pool_t *pconf, apr_pool_t 
*plog, apr_pool_t *ptemp
 static int
 php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t 
*ptemp, server_rec *s)
 {
-       void *data = NULL;
-       const char *userdata_key = "apache2hook_post_config";
 
+#if AP_MODULE_MAGIC_AT_LEAST(20110203,1)
        /* Apache will load, unload and then reload a DSO module. This
         * prevents us from starting PHP until the second load. */
+        if (ap_state_query(AP_SQ_MAIN_STATE) == AP_SQ_MS_CREATE_PRE_CONFIG) {
+               return OK;
+        }
+#else
+       void *data = NULL;
+       const char *userdata_key = "apache2hook_post_config";
+       
        apr_pool_userdata_get(&data, userdata_key, s->process->pool);
+       
        if (data == NULL) {
                /* We must use set() here and *not* setn(), otherwise the
                 * static string pointed to by userdata_key will be mapped
@@ -445,6 +452,7 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t 
*plog, apr_pool_t *ptemp
                apr_pool_userdata_set((const void *)1, userdata_key, 
apr_pool_cleanup_null, s->process->pool);
                return OK;
        }
+#endif
 
        /* Set up our overridden path. */
        if (apache2_php_ini_path_override) {
++++++ php5-per-mod-log.patch ++++++
commit 59dfd98677886d418bda90ac5291ba8dea638dc7
Author: Cristian Rodríguez <crrodrig...@opensuse.org>
Date:   Wed Aug 8 21:12:57 2012 +0200

    Fix per-module logging in apache 2.4

diff --git a/sapi/apache2filter/sapi_apache2.c 
b/sapi/apache2filter/sapi_apache2.c
index 0b51cfb..a8fec5c 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -744,6 +744,9 @@ static size_t php_apache_fsizer_stream(void *handle 
TSRMLS_DC)
        return 0;
 }
 
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(php5);
+#endif 
 AP_MODULE_DECLARE_DATA module php5_module = {
        STANDARD20_MODULE_STUFF,
        create_php_config,              /* create per-directory config 
structure */
diff --git a/sapi/apache2handler/mod_php5.c b/sapi/apache2handler/mod_php5.c
index 9df4f25..35d5548 100644
--- a/sapi/apache2handler/mod_php5.c
+++ b/sapi/apache2handler/mod_php5.c
@@ -25,6 +25,10 @@
 #include "php.h"
 #include "php_apache.h"
 
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(php5);
+#endif
+
 AP_MODULE_DECLARE_DATA module php5_module = {
        STANDARD20_MODULE_STUFF,
        create_php_config,              /* create per-directory config 
structure */
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to