PHP4 works again (was Re: PHP4 causes apache to fail to start)
Hi Andreas, apt-get dist-upgrade upgraded php4 today and with this new version I am able to run php4 with apache again. Thanks! Per -- Per Bojsen <[EMAIL PROTECTED]> 7 Francis Road Billerica, MA 01821-3618 USA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PHP4 causes apache to fail to start
On 05-Mar-23 09:30, Per Bojsen wrote: > *** Regarding Re: PHP4 causes apache to fail to start; Andreas Jochens > <[EMAIL PROTECTED]> adds: > > Andreas> - my_free((char*)root->name); > Andreas> + my_free(root->name); > > Andreas> I do not think that this patch is the cause for your > Andreas> problems. > > I agree, this patch should have nothing to do with it. Actually, that > patch was required to even compile with GCC 4, right? Yes, it was required to compile with gcc-4.0. > Andreas> Maybe it is gcc-4.0 optimization bug. I will install php4 on > Andreas> my own server and try to find out what is going on. > > Ok, thanks. So until that patch I was using a php4 compiled with GCC > 3.3? The previous version of php4 was compiled with gcc-3.4 which did not need the patch. Regards Andreas Jochens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PHP4 causes apache to fail to start
*** Regarding Re: PHP4 causes apache to fail to start; Andreas Jochens <[EMAIL PROTECTED]> adds: Andreas> - my_free((char*)root->name); Andreas> + my_free(root->name); Andreas> I do not think that this patch is the cause for your Andreas> problems. I agree, this patch should have nothing to do with it. Actually, that patch was required to even compile with GCC 4, right? Andreas> Maybe it is gcc-4.0 optimization bug. I will install php4 on Andreas> my own server and try to find out what is going on. Ok, thanks. So until that patch I was using a php4 compiled with GCC 3.3? Per -- Per Bojsen <[EMAIL PROTECTED]> 7 Francis Road Billerica, MA 01821-3618 USA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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.0 +0200 +++ ./ext/xmlrpc/libxmlrpc/xml_element.c2004-12-30 22:50:25.0 +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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]