审查视图

vendor/symfony/http-foundation/Tests/Fixtures/response-functional/invalid_cookie_name.php 266 字节
王智 authored
1 2 3 4 5 6 7 8 9 10 11
<?php

use Symfony\Component\HttpFoundation\Cookie;

$r = require __DIR__.'/common.inc';

try {
    $r->headers->setCookie(new Cookie('Hello + world', 'hodor', 0, null, null, null, false, true));
} catch (\InvalidArgumentException $e) {
    echo $e->getMessage();
}