Sophie

Sophie

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

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

--TEST--
session encryption with checkraddr=4
--SKIPIF--
<?php include "../skipifcli.inc"; ?>
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.1
PHPSESSID=test
END;
--INI--
suhosin.session.encrypt=On
suhosin.session.cryptkey=D3F4UL7
suhosin.session.cryptua=Off
suhosin.session.cryptdocroot=Off
suhosin.session.cryptraddr=0
suhosin.session.checkraddr=4
--FILE--
<?php
include "sessionhandler.inc";

session_test_start(new RemoteAddrSessionHandler());
var_dump($_SESSION);

?>
--EXPECTF--
array(1) {
  ["a"]=>
  string(1) "b"
}