Re: ini_set() security question

From: Date: Wed, 30 May 2007 20:24:59 +0000
Subject: Re: ini_set() security question
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-255862@lists.php.net to get a copy of this message
On Wed, May 30, 2007 2:59 pm, Samuel Vogel wrote: > Hi! >> Show us your test code? >> > /etc/apache2/httpd.conf : > php_admin_value memory_limit 3145728 > > iniset_test.php : > <?php > > $old = ini_set("memory_limit", 20971520); > > echo "old: ".$old; > > $new = ini_get("memory_limit"); > > echo "<br>new: ".$new; > > ?> > > The result is the following: > old: 3145728 > new: 20971520 And what happens if you try to allocate 3M of data? $foo = str_repeat('.', 3145728); -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#255862) next »