Doc #79253 [NEW]: doc for pg_get_result() fails to mention its implementation is syncronous

From: Date: Mon, 10 Feb 2020 14:01:29 +0000
Subject: Doc #79253 [NEW]: doc for pg_get_result() fails to mention its implementation is syncronous
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17290@lists.php.net to get a copy of this message
From: mikko dot rantalainen at peda dot net Operating system: Ubuntu Linux 16.04 LTS PHP version: 7.4.2 Package: Documentation problem Bug Type: Documentation Problem Bug description:doc for pg_get_result() fails to mention its implementation is syncronous Description: ------------ --- From manual page: https://php.net/function.pg-get-result --- The documentation makes reader to believe that this function is asyncronous. For example: "pg_get_result — Get asynchronous query result" "pg_get_result() gets the result resource from an asynchronous query executed by ..." However, in reality the behavior of pg_get_result() appears to be that it will wait for the query to complete before returning if the query has not yet been fully processed. As such, the function pg_get_result() is syncronous but it is used to get results from an asyncronous function. In addition, the description is unclear about if the expected style is to always repeatedly call pg_get_result() until FALSE is returned. Another way to use this method is call this exactly once for each pg_send_query() that is supposed to contain one query. -- Edit bug report at https://bugs.php.net/bug.php?id=79253&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79253&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79253&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79253&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79253&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79253&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79253&r=support Expected behavior: https://bugs.php.net/fix.php?id=79253&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79253&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79253&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79253&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79253&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79253&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79253&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79253&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79253&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79253&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79253&r=mysqlcfg

« previous php.doc.bugs (#17290) next »