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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alvaro at demogracia dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=185582af21c073e367e32d46dd528e130ce3d26b
Log: Fix #76088: ODBC functions are not available by default on Windows
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 04:01:29 2024 UTC