WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 5 weeks ago

#47855 new defect (bug)

PHPMailer::validateAddress() fails on PHP 7.3 with libpcre2 < 10.32

Reported by: yolabingo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.2.2
Component: Mail Keywords: php73
Focuses: Cc:
PR Number:

Description

Due to a bug in libpcre2 < 10.32-RC1 https://bugs.exim.org/show_bug.cgi?id=2300,
this email regex validation fails in PHP 7.3 with PCRE_VERSION < 10.32.
One consequence of this is being unable to send a password reset link from the login page - the user sees the error
"The email could not be sent. Possible reason: your host may have disabled the mail() function."

A simple test script https://gist.github.com/yolabingo/68b4f037661e702742c5abb324a3d992

PHP < 7.3 uses libpcre 8.x
PHP 7.3 uses libpcre2 10.x

Attachments (1)

wp-email-validate-check.php (2.1 KB) - added by yolabingo 3 months ago.
simple script to test the

Download all attachments as: .zip

Change History (3)

@yolabingo
3 months ago

simple script to test the

#1 @SergeyBiryukov
3 months ago

  • Keywords php73 added

#2 @jrf
5 weeks ago

Sounds very similar to #33037 ?

Note: See TracTickets for help on using tickets.