protected function readChunkHeader()
	{
		static $m = NULL;
		
		if(preg_match("'([a-fA-F0-9]+).*\r\n'", $this->buffer, $m))
		{
			$this->remainder = hexdec($m[1]);
			$this->buffer = (string)substr($this->buffer, strlen($m[0]));
		}
		else
		{
			$this->remainder = 0;
		}
	}
protected function readChunkHeader()
	{
		static $m = NULL;
		
		if(preg_match("'([a-fA-F0-9]+).*\r\n'", $this->buffer, $m))
		{
			$this->remainder = hexdec($m[1]);
			$this->buffer = (string)substr($this->buffer, strlen($m[0]));
		}
		else
		{
			$this->remainder = 0;
		}
	}
protected function readChunkHeader ( ) { static $ m = NULL ; if ( preg_match ( "'([a-fA-F0-9]+).*\r\n'" , $ this -> buffer , $ m ) ) { $ this -> remainder = hexdec ( $ m [ 1 ] ) ; $ this -> buffer = ( string ) substr ( $ this -> buffer , strlen ( $ m [ 0 ] ) ) ; } else { $ this -> remainder = 0 ; } }
Compute number of remaining bytes using chunk header
Compute number of remaining bytes using chunk header