Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 852b555ab4ac599f72ecd55e8813096c > files > 134

php-suhosin-0.9.35-1.mga4.x86_64.rpm

--TEST--
Testing: suhosin.log.use-x-forwarded-for=On
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=0
suhosin.log.stdout=255
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.executor.func.blacklist=max
suhosin.log.use-x-forwarded-for=On
--ENV--
return <<<END
REMOTE_ADDR=101.102.103.104
HTTP_X_FORWARDED_FOR=1.2.3.4
END;
--FILE--
<?php
	max(1,2);
?>
--EXPECTF--
Warning: max() has been disabled for security reasons in %s on line 2
ALERT - function within blacklist called: max() (attacker '1.2.3.4', file '%s', line 2)