From: jonathan at strutt dot co dot uk
Operating system: Windows Vista Business Eddition
PHP version: 5.2.9
PHP Bug Type: IIS related
Bug description: Call to undefined function mysql_connect()
Description:
------------
Using IIS 7 over Windows Vista Business and PHP 5.2.9 in ISAPI mode.
Receive the following error when trying to connect to MySQL database:
Fatal error: Call to undefined function mysql_connect() in
S:\northfusion\company\websites\cleverboxed\www\_assets\_includes\class_
db.php on line 16
In addition, when viewing the output of phpinfo(), it states the php.ini
file being used is c:\windows\php.ini and that the extension library
location is "./". However, in the c:\windows\php.ini file, the extension
location is set to "C:\php\ext".
It looks as though this isn't being picked up despite numerous IIS
restarts.
Reproduce code:
---------------
//..
function connect() {
// bring in config
global $config;
// create database handle
$this->handle = mysql_connect($_config->db->host,
$_config->db->username, $config->db->password);
}
//..
Expected result:
----------------
Open connection to the database
Actual result:
--------------
Returned error:
Fatal error: Call to undefined function mysql_connect() in
S:\northfusion\company\websites\cleverboxed\www\_assets\_includes\class_
db.php on line 16
--
Edit bug report at http://bugs.php.net/?id=48461&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48461&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48461&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48461&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48461&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48461&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48461&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48461&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48461&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48461&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48461&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48461&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48461&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48461&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48461&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48461&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48461&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48461&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48461&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48461&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48461&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48461&r=mysqlcfg