[wp-trac] [WordPress Trac] #20778: get_temp_dir should use the system tmp directory as first choice

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 27 20:02:13 UTC 2012


#20778: get_temp_dir should use the system tmp directory as first choice
------------------------------+---------------------
 Reporter:  simonwheatley     |       Owner:  dd32
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  Filesystem        |     Version:  2.5
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by kurtpayne):

 Replying to [comment:23 dd32]:
 > > Looks like this is only happening because the test in question is
 realpath()ing the result.

 The code in the #6821 patch is using `realpath()`.  The test wasn't.  On
 OS X, the /tmp folder is linked to /private/tmp and it was causing a
 mismatch on the assertion.  The test was updated to call `realpath()` on
 both the `$acutal` an `$expected` before the assertion.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20778#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list