summaryrefslogtreecommitdiff
path: root/ext/standard/tests/setrawcookie_basic_002.phpt
blob: 5f12465cc77c4c919e79cfa81342e9a66b554353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Test setrawcookie to fail when output exists before
--CREDITS--
PHP TestFEst 2017 - PHPDublin, PHPSP - Joao P V Martins <jp.joao@gmail.com>
--FILE--
<?php
echo 'output' . PHP_EOL;
var_dump(@setrawcookie('cookie_name', rawurlencode('cookie_content')));
?>
--EXPECT--
output
bool(false)