Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'http-header-explode' of https://github.com/elazar/zf2 i…
Browse files Browse the repository at this point in the history
…nto hotfix/http-header-optimization
  • Loading branch information
weierophinney committed Mar 12, 2012
2 parents 1574653 + fbe09a9 commit d562686
Show file tree
Hide file tree
Showing 50 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion src/Header/AbstractAccept.php
Expand Up @@ -50,7 +50,7 @@ public static function fromString($headerLine)
{
$acceptHeader = new static();

list($name, $values) = preg_split('#: #', $headerLine, 2);
list($name, $values) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== strtolower($acceptHeader->getFieldName())) {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AcceptRanges.php
Expand Up @@ -37,7 +37,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept-ranges') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Age.php
Expand Up @@ -15,7 +15,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'age') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Allow.php
Expand Up @@ -15,7 +15,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'allow') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AuthenticationInfo.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'authentication-info') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Authorization.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'authorization') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/CacheControl.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'cache-control') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Connection.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'connection') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentDisposition.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-disposition') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentEncoding.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-encoding') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentLanguage.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-language') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentLength.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-length') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentLocation.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-location') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentMD5.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-md5') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentRange.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-range') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ContentType.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-type') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Cookie.php
Expand Up @@ -57,7 +57,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'cookie') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Date.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'date') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Etag.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'etag') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Expect.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'expect') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Expires.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'expires') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/From.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'from') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Host.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'host') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/IfMatch.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'if-match') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/IfModifiedSince.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'if-modified-since') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/IfNoneMatch.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'if-none-match') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/IfRange.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'if-range') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/IfUnmodifiedSince.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'if-unmodified-since') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/KeepAlive.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'keep-alive') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/LastModified.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'last-modified') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Location.php
Expand Up @@ -15,7 +15,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'location') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/MaxForwards.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'max-forwards') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Pragma.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'pragma') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ProxyAuthenticate.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'proxy-authenticate') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/ProxyAuthorization.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'proxy-authorization') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Range.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'range') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Referer.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'referer') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Refresh.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'refresh') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/RetryAfter.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'retry-after') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Server.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'server') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/SetCookie.php
Expand Up @@ -114,7 +114,7 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false)
};
}

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'set-cookie') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/TE.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'te') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Trailer.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'trailer') {
Expand Down
2 changes: 1 addition & 1 deletion src/Header/TransferEncoding.php
Expand Up @@ -13,7 +13,7 @@ public static function fromString($headerLine)
{
$header = new static();

list($name, $value) = preg_split('#: #', $headerLine, 2);
list($name, $value) = explode(': ', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'transfer-encoding') {
Expand Down

0 comments on commit d562686

Please sign in to comment.