mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Move from directly referencing an aggregated structure to using a
pointer to a structure. The structure is still aggregated but we add a level of indirection for possible plugins to overwrite the storage
This commit is contained in:
parent
5e8bcbb08a
commit
845d8fa10c
26 changed files with 430 additions and 406 deletions
|
@ -1804,7 +1804,7 @@ PHP_FUNCTION(mysqli_prepare)
|
|||
memcpy(last_error, stmt->stmt->last_error, MYSQL_ERRMSG_SIZE);
|
||||
memcpy(sqlstate, mysql->mysql->net.sqlstate, SQLSTATE_LENGTH+1);
|
||||
#else
|
||||
MYSQLND_ERROR_INFO error_info = mysql->mysql->error_info;
|
||||
MYSQLND_ERROR_INFO error_info = *mysql->mysql->error_info;
|
||||
#endif
|
||||
mysqli_stmt_close(stmt->stmt, FALSE);
|
||||
stmt->stmt = NULL;
|
||||
|
@ -1815,7 +1815,7 @@ PHP_FUNCTION(mysqli_prepare)
|
|||
memcpy(mysql->mysql->net.last_error, last_error, MYSQL_ERRMSG_SIZE);
|
||||
memcpy(mysql->mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH+1);
|
||||
#else
|
||||
mysql->mysql->error_info = error_info;
|
||||
*mysql->mysql->error_info = error_info;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue