ServerUrl helper renders port twice as in http://localhost:8000:8000 #3161

Closed
Blinden opened this Issue Dec 4, 2012 · 2 comments

Projects

None yet

2 participants

@Blinden
Contributor
Blinden commented Dec 4, 2012

I am running the PHP build in server on port 8000

echo $this->serverUrl();

results in: http://localhost:8000:8000

@weierophinney
Member

Which version of zf2?

On Tuesday, December 4, 2012, Bart van der Linden wrote:

I am running the PHP build in server on port 8000

echo $this->serverUrl();

results in: http://localhost:8000:8000


Reply to this email directly or view it on GitHubhttps://github.com/zendframework/zf2/issues/3161.

Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/

@Blinden
Contributor
Blinden commented Dec 4, 2012

2.0.5

@Blinden Blinden closed this Dec 4, 2012
@Blinden Blinden reopened this Dec 4, 2012
@rmasters rmasters added a commit to rmasters/zf2 that referenced this issue Dec 4, 2012
@rmasters rmasters Fix #3161 by checking if the server port already exists in the host
This occurs when running the PHP built-in webserver. HTTP_HOST is set
with the host passed to the script (which can include the port number).
SERVER_PORT is also set.
50320b9
@weierophinney weierophinney added a commit that closed this issue Dec 11, 2012
@rmasters @weierophinney rmasters + weierophinney Fix #3161 by checking if the server port already exists in the host
This occurs when running the PHP built-in webserver. HTTP_HOST is set
with the host passed to the script (which can include the port number).
SERVER_PORT is also set.
efc545e
@weierophinney weierophinney added a commit that referenced this issue Dec 11, 2012
@weierophinney weierophinney Merge branch 'hotfix/3167'
Close #3167
Fixes #3161
ef156c1
@weierophinney weierophinney added a commit to zendframework/zend-view that referenced this issue May 15, 2015
@rmasters @weierophinney rmasters + weierophinney Fix zendframework/zendframework#3161 by checking if the server port a…
…lready exists in the host

This occurs when running the PHP built-in webserver. HTTP_HOST is set
with the host passed to the script (which can include the port number).
SERVER_PORT is also set.
2c09343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment