@@ 498-508 (lines=11) @@ | ||
495 | } |
|
496 | ||
497 | // Passing a URL with a scheme overrides everything |
|
498 | if ($buffer = $url->getScheme()) { |
|
499 | $this->scheme = $buffer; |
|
500 | $this->host = $url->getHost(); |
|
501 | $this->port = $url->getPort(); |
|
502 | $this->username = $url->getUsername(); |
|
503 | $this->password = $url->getPassword(); |
|
504 | $this->path = $url->getPath(); |
|
505 | $this->query = $url->getQuery(); |
|
506 | $this->fragment = $url->getFragment(); |
|
507 | return $this; |
|
508 | } |
|
509 | ||
510 | // Setting a host overrides the entire rest of the URL |
|
511 | if ($buffer = $url->getHost()) { |
|
@@ 511-520 (lines=10) @@ | ||
508 | } |
|
509 | ||
510 | // Setting a host overrides the entire rest of the URL |
|
511 | if ($buffer = $url->getHost()) { |
|
512 | $this->host = $buffer; |
|
513 | $this->port = $url->getPort(); |
|
514 | $this->username = $url->getUsername(); |
|
515 | $this->password = $url->getPassword(); |
|
516 | $this->path = $url->getPath(); |
|
517 | $this->query = $url->getQuery(); |
|
518 | $this->fragment = $url->getFragment(); |
|
519 | return $this; |
|
520 | } |
|
521 | ||
522 | $path = $url->getPath(); |
|
523 | $query = $url->getQuery(); |