Update common patches

This commit is contained in:
Shivam Mathur
2025-11-24 04:18:57 +05:30
parent 865d4645a1
commit 7662a9b5f4
6 changed files with 46 additions and 18 deletions

View File

@ -0,0 +1,5 @@
if [[ $(printf '%s\n%s\n' "${version:?}" "8.5" | sort -V | head -n1) == "8.5" ]]; then
sed -i.bak -e 's/zval_ptr_dtor( &dbh->query_stmt_zval );/OBJ_RELEASE(dbh->query_stmt_obj);dbh->query_stmt_obj = NULL;/' php_pdo_sqlsrv_int.h
sed -i.bak -e 's/pdo_error_mode prev_err_mode/uint8_t prev_err_mode/g' pdo_dbh.cpp
rm -rf *.bak
fi