ID: 15259 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Apache related Operating System: RedHat Linux 7.2 PHP Version: 4.0.6 New Comment:
I don't think this should be classified as a "bogus" bug. I ran into the same issue when using resource limits in cgiwrap, sbox, and a custom version of suexec that calls setrlimit(RLIMIT_AS, ...). For some reason I can't determine, PHP refuses to parse POSTed CGI parameters from STDIN when the RLIMIT_AS value is less than 40 MB (on my machine), despite the fact that PHP itself never uses more than about 8 MB. If I raise the RLIMIT_AS value above 40 MB, it works with no trouble. Perl CGI scripts do not have the same problem. As with the previous poster, using PHP's built-in memory limit is not an option for me -- I'm allowing customers to run their own PHP scripts on shared servers, and the memory limit must be enforced at the OS level to prevent users from running system calls, etc., that exceed the limit. This issue is unfortunately preventing me from offering PHP to several thousand customers. I hope that this bug can be reopened and fixed. I have spent several hours trying to figure out the cause of it in the hope that I could send a patch, but alas, I can't see where the problem is. Previous Comments: ------------------------------------------------------------------------ [2002-01-28 18:22:49] [EMAIL PROTECTED] I can't just use PHP Limit.. I need to be able to LIMIT the resources on Memory for other things (Perl, FrontPage, and other cgi programs) ------------------------------------------------------------------------ [2002-01-28 17:56:48] [EMAIL PROTECTED] This cannot be implemented. Use PHP memory limit. ------------------------------------------------------------------------ [2002-01-28 14:45:33] [EMAIL PROTECTED] I have php compiled as cgi and calling the php binary from apache via AddHandler. I have thousands of users on this box and I have RLimitMEM directives. Using 4.0.6 and 4.1.1 I noticed if I have RLimitMEM defined, having a form POST to the php binary, i get : premature end of script headers. If I remark out the RLimitMEM entry in the <VirtualHost> directive, all is good? Any work arounds? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15259&edit=1