Home
last modified time | relevance | path

Searched refs:setcookie (Results 1 – 10 of 10) sorted by relevance

/PHP-8.1/ext/standard/tests/network/
H A Dsetcookie_array_option_error.phpt2 setcookie() array variant error tests
12 setcookie('name', 'value', ['unknown_key' => 'only']);
18 setcookie('name2', 'value2', [0 => 'numeric_key']);
24 setcookie('name3', 'value3', ['path' => '/path/', 'foo' => 'bar']);
30 setcookie('name', 'value', ['path' => '/;/']);
36 setcookie('name', 'value', ['path' => '/path/', 'domain' => 'ba;r']);
43 setcookie('name4', 'value4', [], "path", "domain.tld", true, true);
51 setcookie('name', 'value', ['expires' => 315328464000]);
63 setcookie(): option "unknown_key" is invalid
64 setcookie(): option array cannot have numeric keys
[all …]
H A Dsetcookie_error.phpt2 setcookie() error tests
11 setcookie('');
16 setcookie('invalid=');
21 setcookie('name', 'invalid;');
26 setcookie('name', 'value', 100, 'invalid;');
31 setcookie('name', 'value', 100, 'path', 'invalid;');
39 setcookie('name', 'value', 315328464000);
53 setcookie(): Argument #1 ($name) cannot be empty
54 setcookie(): Argument #1 ($name) cannot contain "=", ",", ";", " ", "\t", "\r", "\n", "\013", or "\…
55 setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014"
[all …]
H A Dsetcookie.phpt2 setcookie() tests
7 setcookie('name');
8 setcookie('name', '');
9 setcookie('name', 'value');
10 setcookie('name', 'space value');
11 setcookie('name', 'value', 0);
12 setcookie('name', 'value', $tsp = time() + 5);
13 setcookie('name', 'value', $tsn = time() - 6);
14 setcookie('name', 'value', $tsc = time());
15 setcookie('name', 'value', 0, '/path/');
[all …]
H A Dbug69948.phpt2 Bug #69948 (path/domain are not sanitized for special characters in setcookie)
6 var_dump(setcookie('foo', 'bar', 0, 'asdf;asdf'));
11 var_dump(setcookie('foo', 'bar', 0, '/', 'foobar; secure'));
20 setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014"
21 setcookie(): "domain" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014"
H A Dbug69523.phpt2 setcookie() allows empty cookie name
6 setcookie('', 'foo');
12 setcookie(): Argument #1 ($name) cannot be empty
H A Dbug76755.phpt2 Bug #76755 (setcookie does not accept "double" type for expire time)
5 var_dump(setcookie('name', 'value', (float)(time() + 1296000)));
H A Dbug72071.phpt2 Bug #72071 setcookie allows max-age to be negative
9 setcookie("name", "value", $date);
/PHP-8.1/ext/standard/
H A Dhead.c280 PHP_FUNCTION(setcookie) in PHP_FUNCTION() argument
H A Dbasic_functions.stub.php667 function setcookie(string $name, string $value = "", array|int $expires_or_options = 0, string $pat… function
H A Dbasic_functions_arginfo.h2445 ZEND_FUNCTION(setcookie);
3082 ZEND_FE(setcookie, arginfo_setcookie)

Completed in 28 milliseconds