[wp-trac] [WordPress Trac] #57241: PHP 8.x and PHPMailer error

WordPress Trac noreply at wordpress.org
Wed Jan 18 23:43:59 UTC 2023


#57241: PHP 8.x and PHPMailer error
--------------------------+----------------------
 Reporter:  CyberCr33p    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Mail          |     Version:  6.1.1
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 @CyberCr33p Thanks for following up and letting folks know you'd resolved
 the problem.

 When disabling commonly available functions in PHP 8, you've arrived at
 the best solution of adding a dummy function in the wp-config file.
 Otherwise WordPress would need include an impractical number of
 `function_exists()` checks within the code base.

 In ticket #52226 you'll see WordPress made an exception for function calls
 included prior to the wp-config file being included. After that it's
 considered an edge case for advanced configurations that can be handled by
 the server administrators using such configurations.

 I'm going to close this off as wontfix due to the impracticality of
 including all the `function_exists()` calls but I'm glad you found the
 solution.

 Thanks,
 Peter

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


More information about the wp-trac mailing list