note 118700 added to mysqli.poll
| From: | shestero at meta dot ua | Date: | Thu, 21 Jan 2016 00:24:17 +0000 |
| Subject: | note 118700 added to mysqli.poll | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204739@lists.php.net to get a copy of this message | ||
Sometime it's not clear what does it mean as connection is "ready" . Does it mean the
query completed or just some records ready to read?
Is it possible to use asynchronous (unblocking) and unbuffered SELECT-query? I.e. with both
MYSQLI_ASYNC|MYSQLI_USE_RESULT
I want some poll-like code inside my loop that has four case-options:
1. Poll wait time-out is over but no records of result set is ready.
2. One or more records are ready to read (but the query still running).
3. Query is successfully over (completed; no more records).
4. Error.
Is it possible?
As I understood the operation of reading a record from unbuffered query is blocking if there are no
ready records at the moment, and there is no functions to get out how much records are ready ?
----
Server IP: 72.52.91.14
Probable Submitter: 95.26.212.47
----
Manual Page -- http://php.net/manual/en/mysqli.poll.php
Edit -- https://master.php.net/note/edit/118700
Del: integrated -- https://master.php.net/note/delete/118700/integrated
Del: useless -- https://master.php.net/note/delete/118700/useless
Del: bad code -- https://master.php.net/note/delete/118700/bad+code
Del: spam -- https://master.php.net/note/delete/118700/spam
Del: non-english -- https://master.php.net/note/delete/118700/non-english
Del: in docs -- https://master.php.net/note/delete/118700/in+docs
Del: other reasons-- https://master.php.net/note/delete/118700
Reject -- https://master.php.net/note/reject/118700
Search -- https://master.php.net/manage/user-notes.php