|
@@ 308-310 (lines=3) @@
|
| 305 |
|
$options = stream_context_get_options(stream_context_get_default()); |
| 306 |
|
|
| 307 |
|
$host = $this->_params['host']; |
| 308 |
|
if (!empty($this->_params['protocol'])) { |
| 309 |
|
$host = $this->_params['protocol'] . '://' . $host; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
$timeout = 15; |
| 313 |
|
if (!empty($this->_params['timeout'])) { |
|
@@ 386-388 (lines=3) @@
|
| 383 |
|
case self::TYPE_SOCKET: |
| 384 |
|
default: |
| 385 |
|
$host = $this->_params['host']; |
| 386 |
|
if (!empty($this->_params['protocol'])) { |
| 387 |
|
$host = $this->_params['protocol'] . '://' . $host; |
| 388 |
|
} |
| 389 |
|
$host .= ':' . $this->_params['port']; |
| 390 |
|
|
| 391 |
|
return $host; |