Doc #80209 [NEW]: setcookie() is not RFC 6265 compliant

From: Date: Fri, 09 Oct 2020 12:58:10 +0000
Subject: Doc #80209 [NEW]: setcookie() is not RFC 6265 compliant
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17980@lists.php.net to get a copy of this message
From: jve at woodwing dot com Operating system: PHP version: 7.3.23 Package: HTTP related Bug Type: Documentation Problem Bug description:setcookie() is not RFC 6265 compliant Description: ------------ According to the documentation the setcookie() implements RFC 6265.According to this RFC the cookie name is a 'token'. The 'token' is defined in RFC 2616. According to RFC 2616 a token is: token = 1*<any CHAR except CTLs or separators> separators = "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT As a consequence statements like "setcookie("cookie[three]", "cookiethree");" are not compliant with RFC 2616. Above statement is from the setcookie() documentation: Example #3 setcookie() and arrays Expected result: ---------------- Easy way out would be to add a note to the documentation that the use of '[' and ']' is not compliant with RFC 6265. -- Edit bug report at https://bugs.php.net/bug.php?id=80209&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80209&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80209&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80209&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80209&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80209&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80209&r=support Expected behavior: https://bugs.php.net/fix.php?id=80209&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80209&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80209&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80209&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80209&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80209&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80209&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80209&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80209&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80209&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80209&r=mysqlcfg

« previous php.doc.bugs (#17980) next »