[wp-trac] Re: [WordPress Trac] #5984: WordPress should not depend
on access to /tmp/
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 25 18:30:49 GMT 2008
#5984: WordPress should not depend on access to /tmp/
----------------------------+-----------------------------------------------
Reporter: hangy | Owner: hansengel
Type: defect | Status: assigned
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Comment (by hangy):
It is true that there will always be weird server setups and also assuming
that one can write to sys_get_temp_dir() should be right in most cases.
However, WordPress is probably used in the most awkward hosting
environments one can think of, thus working around such problems as good
as possible sounds pretty important to me. :)
I guess my "vote" would go to DD32's solution with the define renamed to
hansengel's WPTEMPDIR. ;) My guess is that it is most likely that some dir
in wp-content is writable (installer could check this?) than /tmp/ for all
those server setups mentioned above.
While one obviously ditches the features of using a system-managed
temporary directory using this approach as the default, it could be the
most reliable one, cross-platform thinking. (Any idea how PHP on a Windows
server reacts to a "/tmp/" path?)
--
Ticket URL: <http://trac.wordpress.org/ticket/5984#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list