# php-5.4.0 and apache-1.3

- Thread: https://externals.io/message/53234
- Original archive: https://news-web.php.net/php.internals/53234
- Started by k@rl.pflaesterer.de on 2011-06-10T11:31:18+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #53234 — k@rl.pflaesterer.de — 2011-06-10T11:31:18+00:00

URL: https://externals.io/message/53234#53234

Hi,
some people (like me) still have to use Apache 1.3; I can't compile
PHP-5.4 with Apache-1.3, because of a change in revision 305276.

svn diff -c305276 main/SAPI.h
Index: main/SAPI.h
===================================================================
--- main/SAPI.h (revision 305275)
+++ main/SAPI.h (revision 305276)
@@ -251,6 +251,7 @@
        char *executable_location;

        int php_ini_ignore;
+       int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */

        int (*get_fd)(int *fd TSRMLS_DC);


But in sapi/apache/mod_php5.c the struct didn't get updated; with this
simple patch it compiles again:

svn diff sapi/apache/mod_php5.c
Index: sapi/apache/mod_php5.c
===================================================================
--- sapi/apache/mod_php5.c      (revision 312006)
+++ sapi/apache/mod_php5.c      (working copy)
@@ -499,6 +499,7 @@
        NULL,                                                   /* treat data */
        NULL,                                                   /* exe location */
        0,                                                              /* ini ignore */
+       0,                                                              /* ini ignore cwd */
        sapi_apache_get_fd,
        sapi_apache_force_http_10,
        sapi_apache_get_target_uid,


  KP
