Project

Profile

Help

Bug #6197 ยป 0_fix_php8_XsltExecutable.patch

Thibault Liardon, 2023-12-02 20:55

View differences:

php8_XsltExecutable.cpp
XdmValue *result = xsltExecutable->callFunctionReturningValue(
functionName, arguments, argument_length);
for (int i = 0; i< argument_length;i++) {
delete argument[i];
delete arguments[i];
}
delete [] argument_length;
delete [] arguments;
if (result != nullptr) {
result->incrementRefCount();
......
}
} catch (SaxonApiException &e) {
for (int i = 0; i< argument_length;i++) {
delete argument[i];
delete arguments[i];
}
delete [] argument_length;
delete [] arguments;
zend_throw_exception(zend_ce_exception, e.getMessageWithErrorCode(), 0);
}
}
    (1-1/1)