Hello all, while developing a php based website hosted on my up-to-date SuSE 7.3/PPC box, I found apache crashing each time I tried to POST a form with encoding="multipart/form-data". The following patch applied to mod_php4 helped: --- main/rfc1867.c.orig Mon May 27 22:20:41 2002 +++ main/rfc1867.c Mon May 27 22:21:09 2002 @@ -109,6 +109,7 @@ if (*bufp) efree(*bufp); *bufp = emalloc(n + 1); + va_start(ap,fmt); vsnprintf(*bufp, n + 1, fmt, ap); return; } This is pretty much the same problem that occurred with earlier squid builds. On the PPC it seems impossible to reuse a varargs list without first re-initializing it. Can someone point me to the principle problem with varargs on PPC? Is this a compiler bug? Is the reuse illegal? Greetings, Uwe
On Wed, May 29, Uwe Hees wrote:
Hello all,
while developing a php based website hosted on my up-to-date SuSE 7.3/PPC box, I found apache crashing each time I tried to POST a form with encoding="multipart/form-data". The following patch applied to mod_php4 helped:
--- main/rfc1867.c.orig Mon May 27 22:20:41 2002 +++ main/rfc1867.c Mon May 27 22:21:09 2002 @@ -109,6 +109,7 @@ if (*bufp) efree(*bufp); *bufp = emalloc(n + 1); + va_start(ap,fmt); vsnprintf(*bufp, n + 1, fmt, ap); return; }
Thanks for the fix, I will put an update package on the ftp server. Gruss Olaf -- $ man clone BUGS Main feature not yet implemented...
participants (2)
-
Olaf Hering
-
Uwe Hees