php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39995 PHP will not use SQL extensions
Submitted: 2006-12-31 15:07 UTC Modified: 2007-01-03 18:53 UTC
From: mike at bitching dot org Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.0 OS: Windows Vista
Private report: No CVE-ID: None
 [2006-12-31 15:07 UTC] mike at bitching dot org
Description:
------------
Using PHP in IIS 7 works on a basic level, but PHP refuses to use any SQL related extension.  To check the problem I've edited php.ini to contain various other extensions.  Those changes are reflected in phpinfo().  However, enabling any of the four SQL related extensions (MySQL, MySQLi, MSSQL, MSQL) is not reflected in phpinfo().  The DLLs are loaded, as verified by looking at them through Process Monitor.  The DLL loads successfully, but it never shows up in phpinfo().

The problem has actually been reported in another case on the news server (http://news.php.net/php.install/17762), but I was unable to find a bug report filed.  Interestingly, it seems to present on a different version of Windows with a different version of IIS as well.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-02 11:29 UTC] edink@php.net
Make sure your PHP installation directory is added to the system path. Also make sure that you are modifying the php.ini file that PHP uses and is shown near the top of phpinfo page.
 [2007-01-03 18:44 UTC] mike at bitching dot org
As I explained in the initial bug report, changes to php.ini are reflected in phpinfo() except the enabling of any of the four SQL extensions.  Other extensions (gettext, gd2, sockets, etc.) all showed up as expected when enabled.

Adding the PHP directory to the system path has fixed the problem.  Why this issue is only reflected with SQL-related extensions (and possibly others that went untested), I do not know.  However, adding PHP to the path does remedy the issue.  Thanks.
 [2007-01-03 18:53 UTC] tony2001@php.net
.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 19:01:36 2025 UTC