Changeset 30253 in spip-zone for _plugins_/simpletest/simpletest/http.php


Ignore:
Timestamp:
Jul 27, 2009, 3:26:42 AM (12 years ago)
Author:
gilles.vincent@…
Message:

[30252] suite : split est deprecie en 5.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/simpletest/simpletest/http.php

    r24737 r30253  
    317317        $this->_authentication = false;
    318318        $this->_realm = false;
    319         foreach (split("\r\n", $headers) as $header_line) {
     319        foreach (preg_split(",\r\n,", $headers) as $header_line) {
    320320            $this->_parseHeaderLine($header_line);
    321321        }
     
    458458     */
    459459    function _parseCookie($cookie_line) {
    460         $parts = split(";", $cookie_line);
     460        $parts = explode(";", $cookie_line);
    461461        $cookie = array();
    462462        preg_match('/\s*(.*?)\s*=(.*)/', array_shift($parts), $cookie);
     
    522522            $this->_headers = &new SimpleHttpHeaders($raw);
    523523        } else {
    524             list($headers, $this->_content) = split("\r\n\r\n", $raw, 2);
     524            list($headers, $this->_content) = preg_split(",\r\n\r\n,", $raw, 2);
    525525            $this->_headers = &new SimpleHttpHeaders($headers);
    526526        }
Note: See TracChangeset for help on using the changeset viewer.