[php-src] Issue #8115: Could not catch deprecation notice from IntlDateFormatter()
| From: | iluuu1994 | Date: | Fri, 18 Feb 2022 09:36:27 +0000 |
| Subject: | [php-src] Issue #8115: Could not catch deprecation notice from IntlDateFormatter() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239867@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8115
Comment Author: iluuu1994
The problem occurs here:
https://github.com/php/php-src/blob/90e4d5456b393a692d4de751561b349d4a9e7b88/ext/intl/dateformat/dateformat_create.cpp#L204-L208
Arguments are parsed in
datefmt_ctor but zend_replace_error_handling
replaces the user error handler before that. Usually zend_replace_error_handling is
only called after arguments are already parsed.