Skip to content

Stdlib: ext/odbc — odbc_connect/odbc_exec SQL ODBC API missing (ext/odbc) #6293

Description

@PurHur

Category

stdlib

Problem

ext/odbc procedural API (odbc_connect, odbc_exec, odbc_fetch_row, odbc_result, …) is absent. Legacy ERP/BI scripts and Windows/Linux ODBC integrations depend on this extension. function_exists('odbc_connect')false on VM.

php-src reference

Repro (failure today)

<?php
echo function_exists('odbc_connect') ? "yes\n" : "no\n";
echo function_exists('odbc_exec') ? "yes\n" : "no\n";
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php -r "var_export(function_exists(\"odbc_connect\"));"
php bin/vm.php -r "var_export(function_exists(\"odbc_connect\"));"
'
Runtime function_exists('odbc_connect')
Zend + ext/odbc true
bin/vm.php false

Scope (this repo)

Path Work
ext/odbc/Module.php New extension module
VM resources ODBC link + result handles
Native Thin unixODBC FFI/wrapper (document unixodbc-dev in Docker)
Tests test/compliance/cases/stdlib/odbc_exists.phpt; optional @group odbc DSN smoke
Matrix script/capability-matrix.php

PHP-in-PHP: connection bookkeeping in ext/odbc/*.php; C only for ODBC driver ABI.

Done when

Verification

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter odbc_exists'

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:vmVirtual machineenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-4:stdlibPhase 4 – stdlib for web apps

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions