[wp-trac] [WordPress Trac] #8969: Replace tmpfile() function with tempnam()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 27 09:29:03 GMT 2009


#8969: Replace tmpfile() function with tempnam()
-------------------------+--------------------------------------------------
 Reporter:  madmuffin    |       Owner:  anonymous                                
     Type:  enhancement  |      Status:  new                                      
 Priority:  normal       |   Milestone:  2.8                                      
Component:  General      |     Version:  2.7                                      
 Severity:  minor        |    Keywords:  ftp,update,tmp,tmpfile,tmpnam,permissions
-------------------------+--------------------------------------------------
 I noticed that Wordpress is using the tmpfile() function which does not
 regard the upload_tmp_dir value. It would be better to use tempnam()
 instead, to which the tmp-path can be passed.

 these 3 files on my system make use of the tmpfile function:

 {{{
 info.php
 wp-admin/includes/class-wp-filesystem-ftpext.php
 wp-includes/js/tinymce/plugins/spellchecker/classes/PSpellShell.php
 }}}

 I am a shared host and normally customers have their own tmp folder but
 tmpfile always writes to /tmp/ on *nix systems, so I have to give
 wordpress users more permissions than usual.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8969>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list