Doc #76088 [Opn->Ver]: ODBC functions are not available by default on Windows

From: Date: Tue, 13 Mar 2018 12:56:58 +0000
Subject: Doc #76088 [Opn->Ver]: ODBC functions are not available by default on Windows
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15517@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76088&edit=1

 ID:                 76088
 Updated by:         cmb@php.net
 Reported by:        alvaro at demogracia dot com
 Summary:            ODBC functions are not available by default on
                     Windows
-Status:             Open
+Status:             Verified
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   Windows
 PHP Version:        7.2Git-2018-03-13 (Git)
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2018-03-13 11:38:44] alvaro at demogracia dot com

Description:
------------
Configuration templates in Windows builds (php.ini-development and php.ini-production) state:

; Notes for Windows environments :
;
; - ODBC support is built in, so no dll is needed for it.
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
;   extension folders as well as the separate PECL DLL download (PHP 5+).
;   Be sure to appropriately set the extension_dir directive.

I guess this used to be true but it's no longer the case since PHP/7.x, at least in official
Windows binaries. Now there's a "ext/php_odbc.dll" file that needs to be loaded:

extension=php_odbc.dll

Suggested fix
=============

In php.ini-development and php.ini-production:
- Remove the node
- Add the missing extension line:

;extension=php_odbc.dll



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76088&edit=1


Thread (3 messages)

« previous php.doc.bugs (#15517) next »