#337 closed defect (bug) (fixed)
Wordpress is not compatible with PHP 4.1.*
Reported by: | cal | Owned by: | michel v |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | critical | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Various bits of wordpress are using php 4.2 and 4.3 only features.
wp-include/class-IXR.php needs is_a(), which appeared in PHP 4.2.0
xmlrpc.php needs ob_clean(), which appeared in PHP 4.2.0
functions-post.php needs print_r() with 2 arguments, which appeared in PHP 4.3.0
There are lots of other functions which have changed since PHP 4.1.0, so it makes sense to dela with these all in one place. The attached patch contains /wp-includes/functions-compat.php, to hold all php version compatability functions, and is include_once()'d in the needed places.
with this patch applied, i can post fine via the metaweblog api.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Added functions-compat to CVS, with proper attributions. Thanks for the heads up!