#30409 [NEW]: MySQLi Loaded with MySQL Causes loss of MySQL Functions
| From: | david at inspiredthinking dot co dot uk | Date: | Tue, 12 Oct 2004 12:35:00 +0000 |
| Subject: | #30409 [NEW]: MySQLi Loaded with MySQL Causes loss of MySQL Functions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-67471@lists.php.net to get a copy of this message | ||
From: david at inspiredthinking dot co dot uk
Operating system: Windows XP SP2
PHP version: 5CVS-2004-10-12 (dev)
PHP Bug Type: MySQLi related
Bug description: MySQLi Loaded with MySQL Causes loss of MySQL Functions
Description:
------------
Loading both MySQL & MySQLi using extension= causes loss of MySQL
functions (Fatal error: Call to undefined function mysql_connect()).
When the MySQLi entry is removed - the MySQL functions are defined.
Reproduce code:
---------------
PHP.INI
extension=php_mysql.dll
extension=php_mysqli.dll
This fails with the above:
$dblink = mysql_connect($db_host, $db_user, $db_pass);
PHP.INI
extension=php_mysql.dll
;extension=php_mysqli.dll
Success:
$dblink = mysql_connect($db_host, $db_user, $db_pass);
Expected result:
----------------
Described above.
Actual result:
--------------
Fatal error: Call to undefined function mysql_connect()
--
Edit bug report at http://bugs.php.net/?id=30409&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30409&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30409&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30409&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30409&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30409&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30409&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30409&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30409&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30409&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30409&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30409&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30409&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30409&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30409&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30409&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30409&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30409&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30409&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30409&r=mysqlcfg