@@ 136-141 (lines=6) @@ | ||
133 | $fp = null; |
|
134 | ||
135 | switch (strtolower($URI_PARTS["scheme"])) { |
|
136 | case "https": |
|
137 | if (!extension_loaded('openssl')) { |
|
138 | trigger_error("openssl extension required for HTTPS", E_USER_ERROR); |
|
139 | exit; |
|
140 | } |
|
141 | $this->port = 443; |
|
142 | case "http": |
|
143 | $this->scheme = strtolower($URI_PARTS["scheme"]); |
|
144 | $this->host = $URI_PARTS["host"]; |
|
@@ 226-231 (lines=6) @@ | ||
223 | $URI_PARTS["path"] = ''; |
|
224 | ||
225 | switch (strtolower($URI_PARTS["scheme"])) { |
|
226 | case "https": |
|
227 | if (!extension_loaded('openssl')) { |
|
228 | trigger_error("openssl extension required for HTTPS", E_USER_ERROR); |
|
229 | exit; |
|
230 | } |
|
231 | $this->port = 443; |
|
232 | case "http": |
|
233 | $this->scheme = strtolower($URI_PARTS["scheme"]); |
|
234 | $this->host = $URI_PARTS["host"]; |