From: arekuti at hotmail dot com
Operating system: Windows XP
PHP version: 5.0.5
PHP Bug Type: IIS related
Bug description: connecting to MySQL Database using php5.0.5
Description:
------------
Hi I am using php5.0.5 and MYSQL in Windows XP. my php is working fine .It
is in E:\php directory I set the path in environment variable. I added
php-cgi.exe in IIS version5.Every thing is working fine but when I am
connecting to MYSQL new version it is giving following error.
Fatal error: Call to undefined function mysql_connect() in
E:\Inetpub\wwwroot\newconn.php on line 4
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
$link = mysql_connect('localhost', 'root', 'arekuti')
or die("dsflskdflkdsfklsdlk");
$db_list = mysql_list_dbs($link);
print $link;
$i = 0;
$cnt = mysql_num_rows($db_list);
while ($i < $cnt) {
echo mysql_db_name($db_list, $i) . "\n";
$i++;
}
?>
Expected result:
----------------
Fatal error: Call to undefined function mysql_connect() in
E:\Inetpub\wwwroot\newconn.php on line 4
--
Edit bug report at http://bugs.php.net/?id=34838&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34838&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34838&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34838&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34838&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34838&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34838&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34838&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34838&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34838&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34838&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34838&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34838&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34838&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34838&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34838&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34838&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34838&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34838&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34838&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34838&r=mysqlcfg