You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ext-http however forces a conversion from _ to - by setting xhyphen to true in php_http_pretty_key() whenever new headers are merged. I believe the following test should work, but currently does not due to the aforementioned conversion:
--TEST--
header string with hyphens and underscores
--SKIPIF--
<?php
include "skipif.inc";
?>
--FILE--
<?php
echo "Test\n";
$h = new http\Header("foo_bar-baz", "bar");
var_dump("Foo_Bar-Baz: bar" === (string) $h);
?>
Done
--EXPECT--
Test
bool(true)
Done
The text was updated successfully, but these errors were encountered:
RFC 7320 permits a number of "special" characters in the field-name of header fields, including both minus (-) and underscore (_):
ext-http however forces a conversion from _ to - by setting xhyphen to true in php_http_pretty_key() whenever new headers are merged. I believe the following test should work, but currently does not due to the aforementioned conversion:
The text was updated successfully, but these errors were encountered: