php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76088 ODBC functions are not available by default on Windows
Submitted: 2018-03-13 11:38 UTC Modified: 2018-03-13 12:56 UTC
From: alvaro at demogracia dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.2Git-2018-03-13 (Git) OS: Windows
Private report: No CVE-ID: None
 [2018-03-13 11:38 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-13 12:56 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2018-03-13 13:07 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=344496
Log: Fix #76088: ODBC functions are not available by default on Windows
 [2018-03-13 13:35 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cab354debd953701ec1ecc066c0ef0690f8ed35c
Log: Fix #76088: ODBC functions are not available by default on Windows
 [2018-03-13 13:35 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC