revert php_eol to \r\n
This commit is contained in:
		@@ -74,7 +74,7 @@ class AsynchronousFileReader {
 | 
				
			|||||||
	 * @return string
 | 
						 * @return string
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	private function parseResult($streamBuffer) {
 | 
						private function parseResult($streamBuffer) {
 | 
				
			||||||
		$resultArray = explode(PHP_EOL . PHP_EOL, $streamBuffer, 2);
 | 
							$resultArray = explode("\r\n\r\n", $streamBuffer, 2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		switch(count($resultArray)) {
 | 
							switch(count($resultArray)) {
 | 
				
			||||||
			case 0:
 | 
								case 0:
 | 
				
			||||||
@@ -102,7 +102,7 @@ class AsynchronousFileReader {
 | 
				
			|||||||
	 */
 | 
						 */
 | 
				
			||||||
	private function decode_chunked($str) {
 | 
						private function decode_chunked($str) {
 | 
				
			||||||
		for($res = ''; !empty($str); $str = trim($str)) {
 | 
							for($res = ''; !empty($str); $str = trim($str)) {
 | 
				
			||||||
			$pos = strpos($str, PHP_EOL);
 | 
								$pos = strpos($str, "\r\n");
 | 
				
			||||||
			$len = hexdec(substr($str, 0, $pos));
 | 
								$len = hexdec(substr($str, 0, $pos));
 | 
				
			||||||
			$res .= substr($str, $pos + 2, $len);
 | 
								$res .= substr($str, $pos + 2, $len);
 | 
				
			||||||
			$str = substr($str, $pos + 2 + $len);
 | 
								$str = substr($str, $pos + 2 + $len);
 | 
				
			||||||
@@ -117,7 +117,7 @@ class AsynchronousFileReader {
 | 
				
			|||||||
	 * @return array
 | 
						 * @return array
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	function parseHeader($header) {
 | 
						function parseHeader($header) {
 | 
				
			||||||
		$headers = explode(PHP_EOL, $header);
 | 
							$headers = explode("\r\n", $header);
 | 
				
			||||||
		$output  = array();
 | 
							$output  = array();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if ('HTTP' === substr($headers[0], 0, 4)) {
 | 
							if ('HTTP' === substr($headers[0], 0, 4)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user