style fixes
This commit is contained in:
+11
-11
@@ -178,8 +178,8 @@ function wpsqli_thread_id($connection)
|
||||
/**
|
||||
* Returns whether the client library is thread-safe.
|
||||
*
|
||||
* This function is a wrapper for the mysqli_thread_safe function. It indicates whether the
|
||||
* mysqli client library that PHP is using is thread-safe. This is important information when
|
||||
* This function is a wrapper for the mysqli_thread_safe function. It indicates whether the
|
||||
* mysqli client library that PHP is using is thread-safe. This is important information when
|
||||
* running PHP in a multi-threaded environment such as with the worker MPM in Apache or when
|
||||
* using multi-threading extensions in PHP.
|
||||
*
|
||||
@@ -246,9 +246,9 @@ function wpsqli_connect_errno()
|
||||
* Returns a string description of the last connect error.
|
||||
*
|
||||
* This function is a wrapper for the mysqli_connect_error function. It provides a textual description
|
||||
* of the error from the last connection attempt made by mysqli_connect() or mysqli_real_connect().
|
||||
* of the error from the last connection attempt made by mysqli_connect() or mysqli_real_connect().
|
||||
* Unlike mysqli_connect_errno(), which returns an error code, mysqli_connect_error() returns a string
|
||||
* describing the error. This is useful for error handling, providing more detailed context about
|
||||
* describing the error. This is useful for error handling, providing more detailed context about
|
||||
* connection problems.
|
||||
*
|
||||
* @return string|null A string that describes the error from the last connection attempt, or NULL
|
||||
@@ -594,14 +594,14 @@ function wpsqli_fetch_object($result, $class = "stdClass", $constructor_args = [
|
||||
* Fetches one row of data from the result set and returns it as an enumerated array.
|
||||
* Each call to this function will retrieve the next row in the result set, so it's typically
|
||||
* used in a loop to process multiple rows.
|
||||
*
|
||||
*
|
||||
* This function is particularly useful when you need to retrieve a row as a simple array
|
||||
* where each column is accessed by an integer index starting at 0. It does not include
|
||||
* column names as keys, which can be marginally faster and less memory intensive than
|
||||
* associative arrays if the column names are not required.
|
||||
*
|
||||
*
|
||||
* @param mysqli_result $result The result set returned by a query against the database.
|
||||
*
|
||||
*
|
||||
* @return array|null Returns an enumerated array of strings representing the fetched row,
|
||||
* or NULL if there are no more rows in the result set.
|
||||
*/
|
||||
@@ -615,14 +615,14 @@ function wpsqli_fetch_row(mysqli_result $result): ?array
|
||||
* $result object. This function can be used in conjunction with mysqli_fetch_row(),
|
||||
* mysqli_fetch_assoc(), mysqli_fetch_array(), or mysqli_fetch_object() to navigate between
|
||||
* rows in result sets, especially when using buffered result sets.
|
||||
*
|
||||
*
|
||||
* This is an important function for situations where you need to access a specific row
|
||||
* directly without iterating over all preceding rows, which can be useful for pagination
|
||||
* or when looking up specific rows by row number.
|
||||
*
|
||||
*
|
||||
* @param mysqli_result $result The result set returned by a query against the database.
|
||||
* @param int $row_number The desired row number to seek to. Row numbers are zero-indexed.
|
||||
*
|
||||
*
|
||||
* @return bool Returns TRUE on success or FALSE on failure. If the row number is out of range,
|
||||
* it returns FALSE.
|
||||
*/
|
||||
@@ -983,4 +983,4 @@ function wpsqli_poll(&...$args)
|
||||
function wpsqli_reap_async_query($connection)
|
||||
{
|
||||
return mysqli_reap_async_query($connection);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user