mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Use preg_split() insted of deprecated split()
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8435 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
341eee765f
commit
05cc65433e
1 changed files with 2 additions and 2 deletions
|
|
@ -101,12 +101,12 @@ class XEHttpRequest {
|
|||
$request .= $crlf.$post_body;
|
||||
fwrite($sock, $request);
|
||||
|
||||
list($httpver, $code, $status) = split(' +', rtrim(fgets($sock)));
|
||||
list($httpver, $code, $status) = preg_split('/ +/', rtrim(fgets($sock)), 3);
|
||||
|
||||
// read response headers
|
||||
$is_chunked = false;
|
||||
while(strlen(trim($line = fgets($sock)))) {
|
||||
list($equiv, $content) = split(' *: *', rtrim($line));
|
||||
list($equiv, $content) = preg_split('/ *: */', rtrim($line), 1);
|
||||
if(!strcasecmp($equiv, 'Transfer-Encoding') && $content == 'chunked') {
|
||||
$is_chunked = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue