mysqli::reap_async_query

mysqli_reap_async_query

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

mysqli::reap_async_query -- mysqli_reap_async_query获取异步查询的结果

说明

面向对象风格

public mysqli::reap_async_query(): mysqli_result|bool

过程化风格

mysqli_reap_async_query(mysqli $mysql): mysqli_result|bool

获取异步查询的结果,

注意:

仅可用于 mysqlnd

参数

mysql

仅以过程化样式:由 mysqli_connect()mysqli_init() 返回的 mysqli 对象。

返回值

失败时返回 false。对于生成结果集的成功查询,比如 SELECT, SHOW, DESCRIBEEXPLAINmysqli_reap_async_query() 将返回 mysqli_result 对象。对其它成功查询,mysqli_reap_async_query() 将返回 true

错误/异常

If mysqli error reporting is enabled (MYSQLI_REPORT_ERROR) and the requested operation fails, a warning is generated. If, in addition, the mode is set to MYSQLI_REPORT_STRICT, a mysqli_sql_exception is thrown instead.

参见