Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 6d760d055fd3a2b310e8987a120d5d70 > files > 13

php-suhosin-0.9.32.1-5.1.mga1.i586.rpm

--TEST--
memory_limit test: set suhosin hard_limit to normal limit
--SKIPIF--
<?php if (!function_exists("memory_get_usage")) print "skip PHP not compiled with memory_limit support"; ?>
--INI--
memory_limit=16M
suhosin.memory_limit=0
suhosin.log.syslog=0
suhosin.log.script=0
suhosin.log.sapi=2
--FILE--
<?php
    ini_set("memory_limit", "13M"); echo ini_get("memory_limit"), "\n";
    ini_set("memory_limit", "14M"); echo ini_get("memory_limit"), "\n";
    ini_set("memory_limit", "15M"); echo ini_get("memory_limit"), "\n";
    ini_set("memory_limit", "16M"); echo ini_get("memory_limit"), "\n";
    ini_set("memory_limit", "17M"); echo ini_get("memory_limit"), "\n";
    ini_set("memory_limit", "18M"); echo ini_get("memory_limit"), "\n";
?>
--EXPECTF--
13M
14M
15M
16M
ALERT - script tried to increase memory_limit to 17825792 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '%s', line 6)
16M
ALERT - script tried to increase memory_limit to 18874368 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '%s', line 7)
16M