summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
authorPhilip Hofstetter <phofstetter@sensational.ch>2020-10-09 11:55:33 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-12 16:42:41 +0200
commit74cf2eb83fc664cbad2d619fd2662bee770d8f81 (patch)
treedcdb7249cafa83980040846b550b415c7b3c36b1 /ext/imap/php_imap.c
parent216d6a024aeee19a7bd532d0ddaad2a4aff7e097 (diff)
downloadphp-git-74cf2eb83fc664cbad2d619fd2662bee770d8f81.tar.gz
intl: report more information about message pattern parse errors
The message patterns can be pretty complex, so reporting a generic U_PARSE_ERROR without any additional information makes it needlessly hard to fix erroneous patterns. This commit makes use of the additional UParseError* parameter to umsg_open to retrieve more details about the parse error to report that to the user via intl_get_error_message() Additional improve error reporting from the IntlMessage constructor. Previously, all possible failures when calling IntlMessage::__construct() would be masked away with a generic "Constructor failed" message. This would include invalid patterns. This commit makes sure that the underlying error that caused the constructor failure is reported as part of the IntlException error message. Closes GH-6325.
Diffstat (limited to 'ext/imap/php_imap.c')
0 files changed, 0 insertions, 0 deletions