#41898 [NEW]: mysqli_* functions missing
| From: | ben at popator dot com | Date: | Thu, 05 Jul 2007 01:09:04 +0000 |
| Subject: | #41898 [NEW]: mysqli_* functions missing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-114658@lists.php.net to get a copy of this message | ||
From: ben at popator dot com
Operating system: CentOS 4.5 x86_64
PHP version: 5.2.3
PHP Bug Type: MySQLi related
Bug description: mysqli_* functions missing
Description:
------------
PHP 5.2.3 fails to implement mysqli functions in conjunction with mysql.
phpinfo() reports MySQL and MySQLi as being available.
Attempted workarounds as detailed at
http://www.kofler.cc/forum/forumthread.php?rootID=3571
without any
success.
MySQL Version: 4.1.21
Configure:
'./configure' '--enable-pic' '--with-libdir=lib64'
'--prefix=/usr/local'
'--with-xml' '--enable-bcmath' '--enable-calendar'
'--with-curl'
'--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--enable-exif'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr'
'--with-mysqli=/usr/bin/mysql_config' '--with-snmp'
'--enable-ucd-snmp-hack' '--with-openssl' '--with-pear'
'--with-pspell'
'--enable-sockets' '--enable-track-vars' '--with-ttf'
'--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx'
'--with-xmlrpc' '--with-zip' '--with-zlib'
'--prefix=/usr/local/php5'
'--exec-prefix=/usr/local/php5' '--program-suffix=5'
'--enable-force-cgi-redirect' '--disable-discard-path'
'--with-pdo-mysql'
Reproduce code:
---------------
<?php
$foo = function_exists('mysqli_connect');
if ($foo) {
echo "Mysqli available";
} else {
echo "Mysqli not available";
}
Expected result:
----------------
Mysqli available
Actual result:
--------------
Mysqli not available
--
Edit bug report at http://bugs.php.net/?id=41898&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41898&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41898&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41898&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41898&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41898&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41898&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41898&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41898&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41898&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41898&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41898&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41898&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41898&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41898&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41898&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41898&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41898&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41898&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41898&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41898&r=mysqlcfg