[wp-trac] [WordPress Trac] #25317: Wrong guess in wp_guess_url() for symlinked install, or unit tests
WordPress Trac
noreply at wordpress.org
Fri Sep 13 23:41:33 UTC 2013
#25317: Wrong guess in wp_guess_url() for symlinked install, or unit tests
-----------------------------+--------------------
Reporter: bpetty | Owner:
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 3.7
Component: Upgrade/Install | Version: trunk
Severity: blocker | Resolution:
Keywords: has-patch |
-----------------------------+--------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => has-patch
* priority: normal => highest omg bbq
* severity: normal => blocker
Comment:
[25396] also doesn't work on Windows.
In my case, the values for unit tests were:
{{{
$_SERVER['SCRIPT_FILENAME']: S:\\usr\\local\\php5\phpunit
ABSPATH: S:\home\wordpress\develop/src/
Resulting URL: http://example.orgS:\home\wordpress\develop/src
}}}
When trying to set up a new install:
{{{
$_SERVER['SCRIPT_FILENAME']: S:/home/wordpress/trunk/index.php
ABSPATH: S:\home\wordpress\trunk/
Resulting URL: http://trunk.wordpressS:\home\wordpress\trunk
}}}
[attachment:25317.patch] fixes both the unit tests and the installation
for me by normalizing slashes and providing a fallback if none of the
`strpos()` conditions are met.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25317#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list