Edit report at http://bugs.php.net/bug.php?id=52433&edit=1
ID: 52433 Updated by: degeb...@php.net Reported by: admin at webdesignforall dot net Summary: Call to undefined method mysqli::poll() -Status: Bogus +Status: Verified Type: Bug Package: MySQLi related Operating System: Debian 5 PHP Version: 5.3.3 Block user comment: N New Comment: I can reproduce this using the latest revision in the 5.3 branch. Procedural mode works, but OO mode gives a fatal error. Previous Comments: ------------------------------------------------------------------------ [2010-07-26 04:11:56] admin at webdesignforall dot net It is compiled with mysqlnd here is the configure line. Configure Command => './configure' '--prefix=/custom/php-5.3.3' '--with- mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' Like I said mysqli_poll works fine just mysqli::poll doesn't, so there's something wrong with the mysqli class. ------------------------------------------------------------------------ [2010-07-25 18:34:58] johan...@php.net MySQLi asynchronous queries only exist if PHP was compiled using mysqlnd (--with-mysqli=myslqnd) ------------------------------------------------------------------------ [2010-07-25 02:32:43] admin at webdesignforall dot net Description: ------------ The static method mysqli::poll doesn't exist. Using it creates a Fatal error: Call to undefined method mysqli::poll() . mysqli_poll works fine. Test script: --------------- <?php $link1 = new mysqli("localhost","root","","dba"); $link1->query("SELECT 'test'", MYSQLI_ASYNC); $done=false; do { $links = $errors = $reject = array(); $links[] = $errors[] = $reject[] = $link1; if (!mysqli::poll($links, $errors, $reject, 1)) { continue; } if ($result = $links[0]->reap_async_query()) { $done=true; } } while(!$done); Expected result: ---------------- No output. Actual result: -------------- Fatal error: Call to undefined method mysqli::poll() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52433&edit=1