Closed Thread Icon

Topic awaiting preservation: PHP5 and memory Pages that link to <a href="https://ozoneasylum.com/backlink?for=22668" title="Pages that link to Topic awaiting preservation: PHP5 and memory" rel="nofollow" >Topic awaiting preservation: PHP5 and memory\

 
Author Thread
norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted 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?

I've googled on PHP5 and memory limits without much success.......

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted 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?


From where did you start PHP? Via apache? or via the command line?

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted 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

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 07-23-2004 18:48

^^ - there you go - if you compile your own, you got no reason to complain.

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 07-24-2004 00:09

SysAdmin="can\'t blame anyone else";

Damn.....

« BackwardsOnwards »

Show Forum Drop Down Menu