@@ -221,7 +221,6 @@ static void xsl_objects_unset_property(zend_object *object, zend_string *member,
221
221
static bool xsl_try_output_replaced_error_message (
222
222
void * ctx ,
223
223
const char * msg ,
224
- va_list args ,
225
224
const char * search ,
226
225
size_t search_len ,
227
226
const char * replace
@@ -237,8 +236,8 @@ static bool xsl_try_output_replaced_error_message(
237
236
238
237
/* Helper macro so the string length doesn't need to be passed separately.
239
238
* Only allows literal strings for `search` and `replace`. */
240
- #define XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg , args , search , replace ) \
241
- xsl_try_output_replaced_error_message(ctx, msg, args, "" search, sizeof("" search) - 1, "" replace)
239
+ #define XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg , search , replace ) \
240
+ xsl_try_output_replaced_error_message(ctx, msg, "" search, sizeof("" search) - 1, "" replace)
242
241
243
242
/* We want to output PHP-tailored error messages for some libxslt error messages, such that
244
243
* the errors refer to PHP properties instead of libxslt-specific fields. */
@@ -250,8 +249,8 @@ static void xsl_libxslt_error_handler(void *ctx, const char *msg, ...)
250
249
if (strcmp (msg , "%s" ) == 0 ) {
251
250
/* Adjust error message to be more descriptive */
252
251
const char * msg_arg = va_arg (args , const char * );
253
- bool output = XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg_arg , args , "xsltMaxDepth (--maxdepth)" , "$maxTemplateDepth" )
254
- || XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg_arg , args , "maxTemplateVars (--maxvars)" , "$maxTemplateVars" );
252
+ bool output = XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg_arg , "xsltMaxDepth (--maxdepth)" , "$maxTemplateDepth" )
253
+ || XSL_TRY_OUTPUT_REPLACED_ERROR_MESSAGE (ctx , msg_arg , "maxTemplateVars (--maxvars)" , "$maxTemplateVars" );
255
254
256
255
if (!output ) {
257
256
php_libxml_ctx_error (ctx , "%s" , msg_arg );
0 commit comments