Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12990 closed defect (bug) (fixed)

WP_Http_Fopen not available for load_image_to_edit()

Reported by: ryan's profile ryan Owned by: dd32's profile dd32
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: HTTP API Keywords:
Focuses: Cc:


Fatal error: Class 'WP_Http_Fopen' not found in /.../wp-admin/includes/image-edit.php on line 206

Due to the way class-http.php is now demand loaded.

Change History (10)

#2 @ryan
14 years ago

Leaving open pending discussion of whether to merge class-http.php back into http.php.

#3 @nacin
14 years ago

  • Component changed from General to HTTP
  • Milestone changed from Unassigned to 3.0
  • Owner set to dd32

Always including it avoids the extra open() syscall, so I'm all for that.

Not sure we need to combine them again. Maybe we can better document the API in http.php and leave them separate. I do like the split, as we separated more than a thousand lines of internals from the functions we want developers to use.

#4 @nacin
14 years ago

(In [14081]) Unbreak setup-config.php. see #12990

#5 @dd32
14 years ago

Whats the argument here for fixing the parts of the code that rely on the class existing, verses always including it?

We might as well just merge it back together if we're going to always include it.. The reason to split it was partially to prevent having to include a set of code which we weren't going to otherwise use..

#6 @nacin
14 years ago

Always including it avoids the extra open() syscall for the times we do need it. I don't really have a problem with keeping the files separate, but if there's a desire to re-merge them, we could.

#7 @dd32
14 years ago

Always including it avoids the extra open() syscall for the times we do need it

Which is required rarely compared to when we do. an extra syscall for when needed compared to always opening the file and parsing the contents is going to be faster overall.

#8 @nacin
14 years ago

Ryan admittedly chose the easy route just to get everything back online. I don't have any preference in how we proceed.

#9 @dd32
14 years ago

The Cookie class might also be needed for direct access before making a request, so having them both included is probably best..

#10 @sivel
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Ok, consensus is to leave the files split and include them both, which is the current way we are doing it. Closing as fixed.

Note: See TracTickets for help on using tickets.