note 107404 deleted from function.http-build-url by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:19:31 +0000 |
| Subject: | note 107404 deleted from function.http-build-url by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208037@lists.php.net to get a copy of this message | ||
Note Submitter: randyg at ernieball dot com
----
Although I've never used this function, based on the documentation it seems that the above code
should also include the following:
<?php
if ( ! is_array( $url ) ) // Added - Randy
// Parse the original URL
$parse_url = parse_url($url);
// allow parts to be a url Added - Randy
if ( ! is_array( $parts ) )
$parts = parse_url( $parts );
?>