Skip to content

Commit 78e1f19

Browse files
committed
Export zend_error_zstr_at()
This is the formerly static function zend_error_impl(), which is the core error handling implementation.
1 parent dc70303 commit 78e1f19

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Zend/zend.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ ZEND_API zval *zend_get_configuration_directive(zend_string *name) /* {{{ */
13151315
} \
13161316
} while (0)
13171317

1318-
static ZEND_COLD void zend_error_impl(
1318+
ZEND_API ZEND_COLD void zend_error_zstr_at(
13191319
int orig_type, zend_string *error_filename, uint32_t error_lineno, zend_string *message)
13201320
{
13211321
zval params[4];
@@ -1453,7 +1453,7 @@ static ZEND_COLD void zend_error_va_list(
14531453
const char *format, va_list args)
14541454
{
14551455
zend_string *message = zend_vstrpprintf(0, format, args);
1456-
zend_error_impl(orig_type, error_filename, error_lineno, message);
1456+
zend_error_zstr_at(orig_type, error_filename, error_lineno, message);
14571457
zend_string_release(message);
14581458
}
14591459

@@ -1570,7 +1570,7 @@ ZEND_API ZEND_COLD void zend_error_zstr(int type, zend_string *message) {
15701570
zend_string *filename;
15711571
uint32_t lineno;
15721572
get_filename_lineno(type, &filename, &lineno);
1573-
zend_error_impl(type, filename, lineno, message);
1573+
zend_error_zstr_at(type, filename, lineno, message);
15741574
}
15751575

15761576
ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format, ...) /* {{{ */

Zend/zend.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ ZEND_API ZEND_COLD void zend_error_unchecked(int type, const char *format, ...);
333333
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);
334334
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);
335335
ZEND_API ZEND_COLD void zend_error_zstr(int type, zend_string *message);
336+
ZEND_API ZEND_COLD void zend_error_zstr_at(int type, zend_string *filename, uint32_t lineno, zend_string *message);
336337

337338
ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
338339
ZEND_API ZEND_COLD void zend_type_error(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);

0 commit comments

Comments
 (0)