@@ -221,7 +221,6 @@ static void xsl_objects_unset_property(zend_object *object, zend_string *member,
221221static bool xsl_try_output_replaced_error_message (
222222 void * ctx ,
223223 const char * msg ,
224- va_list args ,
225224 const char * search ,
226225 size_t search_len ,
227226 const char * replace
@@ -237,8 +236,8 @@ static bool xsl_try_output_replaced_error_message(
237236
238237/* Helper macro so the string length doesn't need to be passed separately.
239238 * 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)
242241
243242/* We want to output PHP-tailored error messages for some libxslt error messages, such that
244243 * 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, ...)
250249 if (strcmp (msg , "%s" ) == 0 ) {
251250 /* Adjust error message to be more descriptive */
252251 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" );
255254
256255 if (!output ) {
257256 php_libxml_ctx_error (ctx , "%s" , msg_arg );
0 commit comments