Edit report at http://bugs.php.net/bug.php?id=52433&edit=1

 ID:               52433
 Updated by:       johan...@php.net
 Reported by:      admin at webdesignforall dot net
 Summary:          Call to undefined method mysqli::poll()
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          MySQLi related
 Operating System: Debian 5
 PHP Version:      5.3.3

 New Comment:

MySQLi asynchronous queries only exist if PHP was compiled using mysqlnd
(--with-mysqli=myslqnd)


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to