mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix error message and add UPGRADING entry
This commit is contained in:
parent
8f1c430954
commit
4baf6a643b
4 changed files with 8 additions and 6 deletions
|
@ -1752,8 +1752,8 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
|
|||
mode_p = &mode;
|
||||
break;
|
||||
default:
|
||||
zend_argument_value_error(ERROR_ARG_POS(2), "must be one of "
|
||||
"MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE");
|
||||
zend_argument_value_error(ERROR_ARG_POS(2), "must be either "
|
||||
"MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
@ -1783,8 +1783,8 @@ PHP_FUNCTION(mysqli_stmt_attr_get)
|
|||
if ((rc = mysql_stmt_attr_get(stmt->stmt, attr, &value))) {
|
||||
/* Success corresponds to 0 return value and a non-zero value
|
||||
* should only happen if the attr/option is unknown */
|
||||
zend_argument_value_error(ERROR_ARG_POS(2), "must be one of "
|
||||
"MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE");
|
||||
zend_argument_value_error(ERROR_ARG_POS(2), "must be either "
|
||||
"MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue