From: werner at procurios dot org Operating system: os x 10.5 PHP version: 5.3.0RC1 PHP Bug Type: MySQLi related Bug description: new MySQLi functions not available as class methods
Description: ------------ While experimenting with the new MySQli functions enabled by compiling with the mysqlnd driver I encountered a problem with the OO MySQLi interface. I can call the new functions, but contrary to the documentation they dont seem to be available as class methods on a mysqli object. The only relevant info i could find was this message: http://lists.mysql.com/commits/21812 full configure string: ./configure --prefix=/usr/local/php --with-apxs2 --with-openssl --enable-bcmath --enable-mbstring --with-curl --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-soap --enable-zip --with-pear=/usr/local/pear --with-zlib --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 --with-gd --with-mcrypt=/usr/local/lib --with-tidy=/usr/local Reproduce code: --------------- <?php $mysqli = new mysqli(); if (function_exists(mysqli_fetch_all) && !method_exists($mysqli, 'fetch_all')) { echo 'mysqli_fetch_all not a class method <br />'; } if (function_exists(mysqli_get_cache_stats) && !method_exists($mysqli, 'mysqli_get_cache_stats')) { echo 'mysqli_get_cache_stats not a class method <br />'; } if (function_exists(mysqli_get_client_stats) && !method_exists($mysqli, 'mysqli_get_client_stats')) { echo 'mysqli_get_client_stats not a class method <br />'; } if (function_exists(mysqli_get_connection_stats) && !method_exists($mysqli, 'mysqli_get_connection_stats')) { echo 'mysqli_get_connection_stats not a class method <br />'; } ?> Expected result: ---------------- no output expected Actual result: -------------- mysqli_fetch_all not a class method mysqli_get_cache_stats not a class method mysqli_get_client_stats not a class method mysqli_get_connection_stats not a class method -- Edit bug report at http://bugs.php.net/?id=47950&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47950&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47950&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47950&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47950&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47950&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47950&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47950&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47950&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47950&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47950&r=support Expected behavior: http://bugs.php.net/fix.php?id=47950&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47950&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47950&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47950&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47950&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47950&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47950&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47950&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47950&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47950&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47950&r=mysqlcfg