[wp-trac] [WordPress Trac] #12866: tmpfile() may use non-writable directory causing upgrades to fail

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 21 15:24:50 UTC 2010


#12866: tmpfile() may use non-writable directory causing upgrades to fail
-----------------------------+----------------------------------------------
 Reporter:  dd32             |        Owner:  dd32    
     Type:  defect (bug)     |       Status:  reopened
 Priority:  normal           |    Milestone:  3.0     
Component:  Upgrade/Install  |      Version:          
 Severity:  normal           |   Resolution:          
 Keywords:  has-patch        |  
-----------------------------+----------------------------------------------
Changes (by ocean90):

  * keywords:  => has-patch
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 We should add ''@'' in front of is_writable(). If $tmp is e.g. /tmp I get
 a open_basedir warning.

 {{{
 Warning: is_writable() [function.is-writable]: open_basedir restriction in
 effect. File(/tmp) is not within the allowed path(s):
 }}}

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


More information about the wp-trac mailing list