Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Conversation

@jeremykendall
Copy link
Collaborator

See jeremykendall/php-domain-parser#23 for details on fix. That PR in php-domain-parser fixes #29.

@jeremykendall
Copy link
Collaborator Author

This test script demonstrates the fix:

<?php

require './vendor/autoload.php';

$url = new \Purl\Url('http://localhost/');
echo $url . "\n";

Output:

$ php -f test.php
http://localhost/

@jwage
Copy link
Owner

jwage commented May 15, 2014

👍

jwage added a commit that referenced this pull request May 15, 2014
Updates php-domain-parser, fixes #29
@jwage jwage merged commit aa43a0a into jwage:master May 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Domain 'localhost' is stripped from input URL

2 participants