mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
This commit is contained in:
parent
07986a53e3
commit
8fba11c57b
2
NEWS
2
NEWS
@ -15,6 +15,8 @@
|
||||
- Changed the $context parameter on copy() to actually have an effect. (Kalle)
|
||||
- Fixed possible crash in mssql_fetch_batch(). (Kalle)
|
||||
|
||||
- Fixed bug #52699 (PDO bindValue writes long int 32bit enum).
|
||||
(rein at basefarm dot no)
|
||||
- Fixed bug #52681 (mb_send_mail() appends an extra MIME-Version header).
|
||||
(Adam)
|
||||
- Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers).
|
||||
|
@ -1624,18 +1624,20 @@ static int register_bound_param(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt,
|
||||
static PHP_METHOD(PDOStatement, bindValue)
|
||||
{
|
||||
struct pdo_bound_param_data param = {0};
|
||||
long param_type = PDO_PARAM_STR;
|
||||
PHP_STMT_GET_OBJ;
|
||||
|
||||
param.paramno = -1;
|
||||
param.param_type = PDO_PARAM_STR;
|
||||
|
||||
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
|
||||
"lz/|l", ¶m.paramno, ¶m.parameter, ¶m.param_type)) {
|
||||
"lz/|l", ¶m.paramno, ¶m.parameter, ¶m_type)) {
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|l", ¶m.name,
|
||||
¶m.namelen, ¶m.parameter, ¶m.param_type)) {
|
||||
¶m.namelen, ¶m.parameter, ¶m_type)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
param.param_type = (int) param_type;
|
||||
|
||||
if (param.paramno > 0) {
|
||||
--param.paramno; /* make it zero-based internally */
|
||||
|
Loading…
Reference in New Issue
Block a user