[wp-trac] [WordPress Trac] #36965: Updates still fail on Windows hosts

WordPress Trac noreply at wordpress.org
Thu Jun 23 21:30:38 UTC 2016


#36965: Updates still fail on Windows hosts
-----------------------------+-----------------------
 Reporter:  billseyLCIS      |       Owner:
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Upgrade/Install  |     Version:
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+-----------------------

Comment (by neogeneva):

 It looks like this issue is caused by how `dirname()` returns slashes for
 root folders in Windows.

 The following PHP demonstrates the issue:

 {{{#!php
 <?php
 echo dirname("/.maintenance")."<br/>".dirname("/wp-admin/includes/update-
 core.php");
 }}}

 The output is as follows:
 {{{
 \
 /wp-admin/includes
 }}}

 So the result for the first `dirname()` flips the slash, which makes the
 assumption about slash direction in `wp_tempnam()` incorrect.

 FYI: I'm using PHP 5.4.45 under Windows 10 1511

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36965#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list