[php-src] master: Export zend_error_zstr_at()

From: Date: Fri, 23 Apr 2021 09:31:14 +0000
Subject: [php-src] master: Export zend_error_zstr_at()
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115782@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Date: 2021-04-23T11:29:55+02:00 Commit: https://github.com/php/php-src/commit/78e1f190fcf50bc717e8b2f73aa3d2a1e52f5767 Raw diff: https://github.com/php/php-src/commit/78e1f190fcf50bc717e8b2f73aa3d2a1e52f5767.diff Export zend_error_zstr_at() This is the formerly static function zend_error_impl(), which is the core error handling implementation. Changed paths: M Zend/zend.c M Zend/zend.h Diff: diff --git a/Zend/zend.c b/Zend/zend.c index eb0a4ddd7e37..ce7d358b6d98 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -1315,7 +1315,7 @@ ZEND_API zval *zend_get_configuration_directive(zend_string *name) /* {{{ */ } \ } while (0) -static ZEND_COLD void zend_error_impl( +ZEND_API ZEND_COLD void zend_error_zstr_at( int orig_type, zend_string *error_filename, uint32_t error_lineno, zend_string *message) { zval params[4]; @@ -1453,7 +1453,7 @@ static ZEND_COLD void zend_error_va_list( const char *format, va_list args) { zend_string *message = zend_vstrpprintf(0, format, args); - zend_error_impl(orig_type, error_filename, error_lineno, message); + zend_error_zstr_at(orig_type, error_filename, error_lineno, message); zend_string_release(message); } @@ -1570,7 +1570,7 @@ ZEND_API ZEND_COLD void zend_error_zstr(int type, zend_string *message) { zend_string *filename; uint32_t lineno; get_filename_lineno(type, &filename, &lineno); - zend_error_impl(type, filename, lineno, message); + zend_error_zstr_at(type, filename, lineno, message); } ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format, ...) /* {{{ */ diff --git a/Zend/zend.h b/Zend/zend.h index b1a7e5a09936..47b84b299e1d 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -333,6 +333,7 @@ ZEND_API ZEND_COLD void zend_error_unchecked(int type, const char *format, ...); ZEND_API ZEND_COLD void zend_error_at(int type, zend_string *filename, uint32_t lineno, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 4, 5); ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_at_noreturn(int type, zend_string *filename, uint32_t lineno, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 4, 5); ZEND_API ZEND_COLD void zend_error_zstr(int type, zend_string *message); +ZEND_API ZEND_COLD void zend_error_zstr_at(int type, zend_string *filename, uint32_t lineno, zend_string *message); ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3); ZEND_API ZEND_COLD void zend_type_error(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);

« previous php.cvs (#115782) next »