Skip to content

Commit

Permalink
Use explode instead of deprecated split
Browse files Browse the repository at this point in the history
  • Loading branch information
shuber committed Sep 8, 2009
1 parent d04cbc4 commit c92be11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curl_response.php
Expand Up @@ -41,7 +41,7 @@ public function __construct($response) {
# Extract headers from response # Extract headers from response
preg_match_all($pattern, $response, $matches); preg_match_all($pattern, $response, $matches);
$headers_string = array_pop($matches[0]); $headers_string = array_pop($matches[0]);
$headers = split("\r\n", str_replace("\r\n\r\n", '', $headers_string)); $headers = explode("\r\n", str_replace("\r\n\r\n", '', $headers_string));


# Remove headers from the response body # Remove headers from the response body
$this->body = str_replace($headers_string, '', $response); $this->body = str_replace($headers_string, '', $response);
Expand Down

0 comments on commit c92be11

Please sign in to comment.