Bug 88727
Summary: | unlimited memory consumption | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Adrian Reber <adrian> |
Component: | php | Assignee: | Joe Orton <jorton> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-04-14 09:19:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Adrian Reber
2003-04-12 17:26:17 UTC
Sorry. This is not a bug, but a bad written php script. At least that's what I am thinking now. If you have in /etc/php.ini: memory_limit = 8M (per the default) a PHP script shouldn't (in theory) be able to consume large amounts of RAM. Can you track down what script is causing the error, and check whether your memory_limit is set? The memory limit is set but it doesn't help. It was set and the default was not changed. I am not 100% sure but I think the script producing the error is at: http://ftp-stud.fht-esslingen.de/pub/test/testResults.php.txt I am mirroring the ecplise project (www.eclipse.org) and this script comes from there. The problem is that the script tries to access files which are I do not mirror and therefore can not be accessed. That's why the script is probably failing. As soon as I rename the file back to .php and try to access it the same error happens again with apache. Yeah, it is a script bug, I don't know why it would act differently under a different version of httpd though. Change: - while (!feof($fileHandle)) { + while ($filehandle && !feof($fileHandle)) { Sorry. I forgot to mention that it acts the same no matter which httpd version I was using. The update and the script just came roughly at the same time, so I first blamed the update of httpd. Thanks for the fix. I will forward it to the upstream authors. OK, great. I'll close this as NOTABUG then, though you might want to file a bug at bugs.php.net that this script fragment will consume all memory. |