httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43966] internal dummy connections blocking httpd
Date Sat, 15 Mar 2008 16:57:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43966





--- Comment #14 from Attila Soki <atiware@gmx.net>  2008-03-15 09:57:01 PST ---
hi,

i contacted the php-java-bridge developers and i get the following feedback:

linkt to the thread:
http://sourceforge.net/mailarchive/forum.php?thread_name=1205435208.2906.45.camel%40kukac&forum_name=php-java-bridge-users

On Sat, 2008-03-15 at 13:54 +0100, php-java-bridge-users@lists.sourceforge.net
wrote:
Hi,
> 
> I was able to reproduce this problem with Apache .2.8 (.2.6 doesn't have this problem).
> 
> Since Apache 2.2.8 the PHP MINIT() is called exactly once and the MSHUTDOWN() function
is called
> more than once, violating the PHP module contract.
> 
> In other words: PHP does not work anymore with Apache 2.2.8. Please use some other HTTP
server or
> some other SAPI, for example FastCGI.
> 
> I have the gut feeling that this is a long-time PHP bug; they've probably implemented
the wrong
> callback. PHP's MSHUTDOWN() shouldn't be called for each child, it should be called when
the whole
> HTTP server terminates. 
> 
> 
> A quick workaround is to store the PID in the MINIT() function (see java.c) and ignore
any
> MSHUTDOWN() where getpid() != pid. Something like this:
> 
> In java.c:
> int pid;
> MINIT()
> {
>   pid = getpid();
>   ...
> }
> 
> MSHUTDOWN()
> {
>   if (getpid() != pid) return SUCCESS; // work around for a Apache 2.2.8 or PHP bug.
>  ...
> }
> 
> 
> Note that all PHP modules have the same problem, so I suggest to file a bug report to
either the
> PHP or the Apache team.
> 
> 
> Regards,
> Jost Boekemeier
> 


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message