• Resolved gkend

    (@gkend)


    I am migrating three sites: two are WP 3.6 and one is WP 4.0. The migration service gave me an audit report of items not compatible with PHP 5.4 on the new server. The report notes that the following need to be updated for v5.4:

    /wp-admin/includes/class-ftp.php: @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX );

    /wp-admin/includes/class-phpmailer.php: ini_set( 'magic_quotes_runtime', 0 );

    I have tried to learn more about these sections of code, but I can’t find anything that says why they’re not compatible or what to replace them with. In addition, the audit report says that WP 3.5 and higher are compatible with PHP 5.4; so that leads me to wonder why there is even a problem with the above snippets. Are they not part of the core WP files? Any layman-friendly explanation would be very helpful and much appreciated. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    If that on the 3.6 site, or the 4.0 site, and is there any particular reason for why you don’t want to update the 3.6 site first?

    FWIW, I’m running a few 4.0 sites under PHP 5.4 with no problems.

    Thread Starter gkend

    (@gkend)

    According to the audit, 3.6 and 4.0 are using those lines. I had our sysadmin temporarily switch our internal DNS over to the new server this morning, and things seemed to work well, although I did have an issue with BackupBuddy waiting for the server. For now, I’m chalking that up a minor config issue, hopefully. I’m hoping that BBuddy will work correctly once the DNS (external and internal) are switched over. My fear regarding the class-ftp.php code was that I may not be able to upload files through the WP interface, but it worked with no problem.

    Moderator James Huff

    (@macmanx)

    Yeah, the audit might be wrong a little bit too strict. I haven’t had any problem with WordPress 4.0 under PHP 5.4, and 5.4 has been out since March of 2012, so I’m pretty sure any problem would have been found by now. ??

    Thread Starter gkend

    (@gkend)

    Thanks for your help, James.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Questions about Deprecated Code for PHP 5.4’ is closed to new replies.