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

WordPress Trac noreply at wordpress.org
Fri Jul 26 18:26:23 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:
--------------------------+------------------------------
Changes (by ayeshrajans):

 * keywords:   => has-patch


Comment:

 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.

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


More information about the wp-trac mailing list