# Deprecate using the ODBC Cursor Library

- Thread: https://externals.io/message/126264
- Original archive: https://news-web.php.net/php.internals/126264
- Started by Christoph M. Becker on 2025-02-01T13:06:07+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #126264 — Christoph M. Becker — 2025-02-01T13:06:07+00:00

URL: https://externals.io/message/126264#126264

Hi all!

I've noticed recently[1] that Microsoft has deprecated the ODBC cursor
library[2], and that it is scheduled for removal.  Thus, I suggest to
remove support for this from ext/odbc (we do not use it in
ext/pdo_odbc).  Concretely, that would entail the deprecation of the
constants SQL_CUR_USE_IF_NEEDED and SQL_CUR_USE_ODBC, so that only the
default (SQL_CUR_USE_DRIVER) could be passed as $cursor_option to
odbc_connect() and odbc_pconnect().  As such, it also makes sense to
deprecate this (optional) parameter right away.

Thoughts?

[1] <https://github.com/php/php-src/pull/17556#issuecomment-2613974650>
[2]
<https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/using-the-odbc-cursor-library>

Christoph
