Skip to content

Commit 539f34c

Browse files
committed
Update patch for pdo_sqlsrv for PHP 8.5
1 parent d10ddc1 commit 539f34c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/patch-extensions.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ patch_pdo_sqlsrv() {
2424
cd source/pdo_sqlsrv || exit 1
2525
cp -rf ../shared ./
2626
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
27+
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
2831
}
2932

3033
# Function to patch xdebug source.

0 commit comments

Comments
 (0)