Re: PHP4 causes apache to fail to start
Hello,
thank you for the bug report.
On 05-Mar-22 23:28, Per Bojsen wrote:
> about 10 days ago I rebooted after about a month of uptime and
> discovered that apache did not start properly. It would start but
> hang before finishing its initialization. It would not serve any web
> pages. Today I tracked the problem down to php4. I disabled php4 in
> the apache setup and apache now again serves web pages successfully.
> Fortunately, I haven't been using php4 for anything of any
> importance.
>
> Looking in the php4 changelog I noticed the following entry:
>
> php4 (4:4.3.10-9.0.0.1.gcc4) unstable; urgency=low
>
> * patches/php4_4.3.10-9.0.0.1.gcc4.patch applied.
>
> -- Andreas Jochens <aj@andaco.de> Mon, 07 Mar 2005 04:34:08 +0100
The patch is necessary for compilation with gcc-4.0:
diff -urN ../tmp-orig/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c ./ext/xmlrpc/libxmlrpc/xml_element.c
--- ../tmp-orig/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c 2004-06-01 22:16:18.000000000 +0200
+++ ./ext/xmlrpc/libxmlrpc/xml_element.c 2004-12-30 22:50:25.000000000 +0100
@@ -188,7 +188,7 @@
Q_Destroy(&root->children);
Q_Destroy(&root->attrs);
- my_free((char*)root->name);
+ my_free(root->name);
simplestring_free(&root->text);
my_free(root);
}
I do not think that this patch is the cause for your problems.
Maybe it is gcc-4.0 optimization bug. I will install php4
on my own server and try to find out what is going on.
Regards
Andreas Jochens
Reply to: