Doc #76088 [NEW]: ODBC functions are not available by default on Windows

From: Date: Tue, 13 Mar 2018 11:38:48 +0000
Subject: Doc #76088 [NEW]: ODBC functions are not available by default on Windows
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15516@lists.php.net to get a copy of this message
From:             alvaro at demogracia dot com
Operating system: Windows
PHP version:      7.2Git-2018-03-13 (Git)
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:ODBC functions are not available by default on Windows

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 bug report at https://bugs.php.net/bug.php?id=76088&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76088&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76088&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76088&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76088&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76088&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76088&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76088&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76088&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76088&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76088&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76088&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76088&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76088&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76088&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76088&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76088&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76088&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76088&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76088&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76088&r=mysqlcfg



Thread (3 messages)

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