Bug #52433 [Bgs]: Call to undefined method mysqli::poll()
| From: | admin at webdesignforall dot net | Date: | Mon, 26 Jul 2010 02:11:57 +0000 |
| Subject: | Bug #52433 [Bgs]: Call to undefined method mysqli::poll() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152780@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52433&edit=1
ID: 52433
User updated by: admin at webdesignforall dot net
Reported by: admin at webdesignforall dot net
Summary: Call to undefined method mysqli::poll()
Status: Bogus
Type: Bug
Package: MySQLi related
Operating System: Debian 5
PHP Version: 5.3.3
Block user comment: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-07-25 18:34:58] johannes@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