equal
deleted
inserted
replaced
11 * @var IXR_Error |
11 * @var IXR_Error |
12 */ |
12 */ |
13 public $error; |
13 public $error; |
14 |
14 |
15 /** |
15 /** |
16 * @param string $server |
16 * @param string $server |
17 * @param string|bool $path |
17 * @param string|false $path |
18 * @param int|bool $port |
18 * @param int|false $port |
19 * @param int $timeout |
19 * @param int $timeout |
20 */ |
20 */ |
21 public function __construct( $server, $path = false, $port = false, $timeout = 15 ) { |
21 public function __construct( $server, $path = false, $port = false, $timeout = 15 ) { |
22 if ( ! $path ) { |
22 if ( ! $path ) { |
23 // Assume we have been given a URL instead. |
23 // Assume we have been given a URL instead. |
24 $bits = parse_url( $server ); |
24 $bits = parse_url( $server ); |