MYSQLI_STORE_RESULT_COPY_DATA

ConstantDeprecated in PHP 8.4

MYSQLI_STORE_RESULT_COPY_DATA — As of PHP 8.1, this constant no longer has any effect. Before PHP 8.1, this constant is used to copy results from the internal mysqlnd buffer into the PHP variables fetched. By default, mysqlnd will use a reference logic to avoid copying and duplicating results held in memory. For certain result sets, for example, result sets with many small rows, the copy approach can reduce the overall memory usage because PHP variables holding results may be released earlier. Available with mysqlnd only. Deprecated as of PHP 8.4.0.

PHP 5.3-5.5
PHP 5.6
Added
PHP 7
PHP 8.0-8.1
PHP 8.2-8.3
PHP 8.4
Deprecated
PHP 8.5
PHP 8.6
/** @deprecated Constant MYSQLI_STORE_RESULT_COPY_DATA is deprecated since 8.4, as the mysqli_store_result() parameter is unused since 8.1 */
MYSQLI_STORE_RESULT_COPY_DATA = 16;

Changes to the MYSQLI_STORE_RESULT_COPY_DATA Constant

PHP 8.4

  • Constant deprecated
var_dump(MYSQLI_STORE_RESULT_COPY_DATA);
// 16
Constant MYSQLI_STORE_RESULT_COPY_DATA is deprecated

PHP 5.6

  • Constant added

MYSQLI_STORE_RESULT_COPY_DATA Constant Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes Deprecated
PHP 8.5Supported (Latest) Yes Deprecated
PHP 8.4Supported Yes Deprecated
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only Yes
PHP 8.1Unsupported Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported No
PHP 5.4Unsupported No
PHP 5.3Unsupported No