Fix bug in PCRE named table processing.
commitaf1ce5ed3330c58c478097b9fa9bdbb9915aabcc
authorAaron Orenstein <aorenste@fb.com>
Sat, 6 Jun 2020 17:15:40 +0000 (6 10:15 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 6 Jun 2020 17:18:45 +0000 (6 10:18 -0700)
tree5dda6303475810d0bee12d521f0ca99c0d43d69d
parent1e38ec718d10da16132c3133c89721ffa1a7566d
Fix bug in PCRE named table processing.

Summary:
The multiplier used to convert the big-endian uint16_t in the PCRE name table
was incorrect.

Reviewed By: fredemmott

Differential Revision: D21832720

fbshipit-source-id: dc476d70677f975c80e2d6bcb2bcad668beff3ae
hphp/runtime/base/preg.cpp
hphp/test/slow/ext_hsl/ext_regex2.php [new file with mode: 0644]
hphp/test/slow/ext_hsl/ext_regex2.php.expect [new file with mode: 0644]