[wp-trac] [WordPress Trac] #25317: Wrong guess in wp_guess_url() for symlinked install, or unit tests
WordPress Trac
noreply at wordpress.org
Sat Sep 14 00:45:56 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 |
-----------------------------+--------------------
Comment (by SergeyBiryukov):
Replying to [comment:4 dd32]:
> That last fallback case might as well be `$path =
$_SERVER['REQUEST_URI']`, since wp-admin and wp-login are caught in the
first block.
Thanks, updated.
> Perhaps those with scenario's that break can post a set of $_SERVER data
that could be used in a test? (SCRIPT_FILENAME, PHP_SELF, REQUEST_URI,
ABSPATH, etc.)
My data, when running unit tests:
{{{
$_SERVER['SCRIPT_FILENAME']: S:\\usr\\local\\php5\\phpunit
$_SERVER['PHP_SELF']: /index.php
$_SERVER['REQUEST_URI']:
ABSPATH: S:\home\wordpress\develop/src/
}}}
When setting up a new install:
{{{
$_SERVER['SCRIPT_FILENAME']: S:/home/wordpress/trunk/index.php
$_SERVER['PHP_SELF']: /index.php
$_SERVER['REQUEST_URI']: /
ABSPATH: S:\home\wordpress\trunk/
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25317#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list