invalid_cookie_name.php 232 B

1234567891011
  1. <?php
  2. use Symfony\Component\HttpFoundation\Cookie;
  3. $r = require __DIR__.'/common.inc';
  4. try {
  5. $r->headers->setCookie(new Cookie('Hello + world', 'hodor'));
  6. } catch (\InvalidArgumentException $e) {
  7. echo $e->getMessage();
  8. }