[wp-trac] [WordPress Trac] #47783: PHP 7.4: Deprecations

WordPress Trac noreply at wordpress.org
Fri Jul 26 18:43:17 UTC 2019


#47783: PHP 7.4: Deprecations
--------------------------+-------------------------------
 Reporter:  ayeshrajans   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------
Changes (by jrf):

 * focuses:   => coding-standards


Comment:

 Replying to [comment:7 ayeshrajans]:
 > Thank you.
 > In the PHPMailer patch `PHP_VERSION_ID < 70400` is supposed to prevent
 the `get_magic_quotes_runtime()` function from being called (so avoid the
 the deprecation notice), and still keep the `$magic_quotes` variable
 `false`. The idea was to not remove the `$magic_quotes` variable and two
 de-slash if blocks below it.
 >
 > PHPMailer `5.2-stable` branch doesn't show a lot of activity, so I tried
 to keep the PR as minimal as possible. This branch also supports PHP >=
 5.0.0
 (https://github.com/PHPMailer/PHPMailer/blob/5.2-stable/composer.json#L24).
 Only 6.x versions require PHP 5.5 minimum, and magic_quotes functionality
 is gone in those versions.


 In that case, as the minimum PHP version for WP is now 5.6, the PHPMailer
 patch should not be necessary and we should just upgrade PHPMailer to v
 6.x.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47783#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list