summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/bug69948.phpt
blob: 957d72f99d23ae3a0dcf946226eeb333a302e367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #69948 (path/domain are not sanitized for special characters in setcookie)
--FILE--
<?php
var_dump(
    setcookie('foo', 'bar', 0, 'asdf;asdf'),
    setcookie('foo', 'bar', 0, '/', 'foobar; secure')
);
?>
===DONE===
--EXPECTHEADERS--
--EXPECTF--
Warning: Cookie paths cannot contain any of the following ',; \t\r\n\013\014' in %s on line %d

Warning: Cookie domains cannot contain any of the following ',; \t\r\n\013\014' in %s on line %d
bool(false)
bool(false)
===DONE===