Re: ini_set() security question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux