From: mimiller at ncsa dot uiuc dot edu
Operating system: Win XP sp2
PHP version: 5.1.4
PHP Bug Type: MySQL related
Bug description: mysql_connect not found
Description:
------------
running PHP 5.1.4 w/Apache 2.0.55 mysql_connect() is not found.
Reproduce code:
---------------
$host =$_SESSION['dbhost'];
$uname =$_SESSION['dbuser'];
$pw =$_SESSION['dbpw'];
$link=mysql_connect($host,$uname,$pw);
if (!$link) {
die('Could not connect: ' . mysql_error());
}
Expected result:
----------------
# $link is suitable for use in:
$query='Select * from Table1';
$result=mysql_query($query, $link);
Actual result:
--------------
Fatal error: Call to undefined function mysql_connect() in C:\Documents
and Settings\mimiller\My Documents\UIUC\NCSA\Schedule\dblink.php on line 8
--
Edit bug report at http://bugs.php.net/?id=38383&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38383&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38383&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38383&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38383&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38383&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38383&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38383&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38383&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38383&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38383&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38383&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38383&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38383&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38383&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38383&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38383&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38383&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38383&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38383&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38383&r=mysqlcfg