Skip to content

Commit

Permalink
Response: fixed bug with header_register_callback, closure is not wor…
Browse files Browse the repository at this point in the history
…king in PHP 5.5.19
  • Loading branch information
dg committed Nov 16, 2014
1 parent 1fafcc7 commit e863423
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ public function __construct()
}

if (PHP_VERSION_ID >= 50401) { // PHP bug #61106
header_register_callback(function() { // requires closure due PHP bug #66375
$this->removeDuplicateCookies();
});
header_register_callback($this->removeDuplicateCookies); // requires closure due PHP bug #66375
}
}

Expand Down

0 comments on commit e863423

Please sign in to comment.