We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d10ddc1 commit 539f34cCopy full SHA for 539f34c
scripts/patch-extensions.sh
@@ -24,7 +24,10 @@ patch_pdo_sqlsrv() {
24
cd source/pdo_sqlsrv || exit 1
25
cp -rf ../shared ./
26
fi
27
- [[ "$PHP_VERSION" = "8.5" ]] && sed -i 's/zval_ptr_dtor( &dbh->query_stmt_zval );/OBJ_RELEASE(dbh->query_stmt_obj);dbh->query_stmt_obj = NULL;/' php_pdo_sqlsrv_int.h
+ if [[ "$PHP_VERSION" = "8.5" ]]; then
28
+ sed -i 's/zval_ptr_dtor( &dbh->query_stmt_zval );/OBJ_RELEASE(dbh->query_stmt_obj);dbh->query_stmt_obj = NULL;/' php_pdo_sqlsrv_int.h
29
+ sed -i 's/pdo_error_mode prev_err_mode/uint8_t prev_err_mode/g' pdo_dbh.cpp
30
+ fi
31
}
32
33
# Function to patch xdebug source.
0 commit comments