1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/ext/standard/tests/network/bug69523.phpt
T
George Peter Banyard 72223159e4 Promote warnings to errors for set(raw)cookie()
Closes GH-5819
2020-09-08 14:28:49 +02:00

13 lines
223 B
PHP

--TEST--
setcookie() allows empty cookie name
--FILE--
<?php
try {
setcookie('', 'foo');
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
setcookie(): Argument #1 ($name) cannot be empty