Topic awaiting preservation: PHP5 and memory (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 07-22-2004 23:16
php5 does not have the memory limits that php4 does. I was able to read an 83mb file with ' file() ', something that just wouldn't happen in php4. This is good because it allows for a lot more of my sys admin tasks to be done with php (.....cause my Perl is way weak), but I'm a little concerned . If there is no cap on resource use what is to stop a poorly written (or even malicious) script from using enough memory to bring the enire box down? |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-23-2004 11:34
well... the change list doesn't see it as dropped... so maybe it's still active, and just not set in your configuration file? |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 07-23-2004 18:39
I ran the script from a webpage, because I wanted to see how apache2 and php5 would deal with such a big file..... as far as configuration goes I remember an optional switch that I could have used (but did not) when compiling: --enable-memory-limit |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-23-2004 18:48
^^ - there you go - if you compile your own, you got no reason to complain. |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 07-24-2004 00:09
SysAdmin="can\'t blame anyone else"; |