[wp-trac] [WordPress Trac] #17880: PHP4 + WordPress 3.2 = fatal error

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 24 11:31:21 UTC 2011


#17880: PHP4 + WordPress 3.2 = fatal error
--------------------------+------------------
 Reporter:  dd32          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2
Component:  General       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by szadok):

 +1 for checking php version on wp-settings.php[[BR]]
 A solution for time being can be something like:

 function wp_clone($object) {
   return version_compare(phpversion(), '5.0') < 0 ? $object :
 clone($object);
 }

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17880#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list