[wp-trac] [WordPress Trac] #10416: Create filter and or constant for forcing use of a specific http transport
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 15 19:57:47 UTC 2009
#10416: Create filter and or constant for forcing use of a specific http transport
-------------------------+--------------------------------------------------
Reporter: sivel | Owner: dd32
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: HTTP | Version: 2.8.1
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by Denis-de-Bernardy):
Replying to [comment:2 sivel]:
> 1. In my current specific case I am checking to see if safe_mode and
open_basedir are set and if they are I want to force use of fsockopen.
However, to do this you have to run 4 filters to disable all of the other
transports rather than being able to do one define or one filter to force
use of a specific transport.
This is one area where, imo WP should be fixed. I've been playing with
transports and filesystems for most of the day, and the concluding points
are:
- FTP Filesystem times out, and is needing a longer timeout, perhaps
through the use of ftp_set_option($wp_filesystem->link, FTP_TIMEOUT_SEC,
300); -- see #10407
- curl is a memory hog, and might need an ini_set() call to increase the
memory limit when used
- the fopen transport returns the infamous PCLZIP_ERR_BAD_FORMAT thingy
-- see http://forum.semiologic.com/discussion/5711/trying-to-do-a
-reinstall-automatically/#Item_3
- Re your particular problem, it would make more sense to just enforce it
in core imo
> 1. Lets say for some reason the test for a specific transport returns
false that it cannot be used but I want to force it to use that transport
anyway. There is currently no way around this.
very true. but again, if it returns false and still works, we should fix
the detection code in core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10416#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list