File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -874,6 +874,8 @@ PHP 8.4 UPGRADE NOTES
874
874
- Mysqli:
875
875
. The unused and undocumented constant MYSQLI_SET_CHARSET_DIR
876
876
has been removed.
877
+ . The MYSQLI_STMT_ATTR_PREFETCH_ROWS constant has been removed.
878
+ The feature is unavailable with mysqlnd.
877
879
878
880
- OpenSSL:
879
881
. The OpenSSL extension now requires at least OpenSSL 1.1.1.
Original file line number Diff line number Diff line change @@ -1752,8 +1752,8 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
1752
1752
mode_p = & mode ;
1753
1753
break ;
1754
1754
default :
1755
- zend_argument_value_error (ERROR_ARG_POS (2 ), "must be one of "
1756
- "MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE " );
1755
+ zend_argument_value_error (ERROR_ARG_POS (2 ), "must be either "
1756
+ "MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE " );
1757
1757
RETURN_THROWS ();
1758
1758
}
1759
1759
@@ -1783,8 +1783,8 @@ PHP_FUNCTION(mysqli_stmt_attr_get)
1783
1783
if ((rc = mysql_stmt_attr_get (stmt -> stmt , attr , & value ))) {
1784
1784
/* Success corresponds to 0 return value and a non-zero value
1785
1785
* should only happen if the attr/option is unknown */
1786
- zend_argument_value_error (ERROR_ARG_POS (2 ), "must be one of "
1787
- "MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE " );
1786
+ zend_argument_value_error (ERROR_ARG_POS (2 ), "must be either "
1787
+ "MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE " );
1788
1788
RETURN_THROWS ();
1789
1789
}
1790
1790
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ require_once 'skipifconnectfailure.inc';
50
50
require_once 'clean_table.inc ' ;
51
51
?>
52
52
--EXPECT--
53
- mysqli_stmt_attr_get(): Argument #2 ($attribute) must be one of MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE
53
+ mysqli_stmt_attr_get(): Argument #2 ($attribute) must be either MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE
54
54
mysqli_stmt object is already closed
55
55
mysqli_stmt object is already closed
56
56
done!
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ require_once 'skipifconnectfailure.inc';
169
169
?>
170
170
--EXPECT--
171
171
Error: mysqli_stmt object is not fully initialized
172
- mysqli_stmt_attr_set(): Argument #2 ($attribute) must be one of MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or STMT_ATTR_CURSOR_TYPE
172
+ mysqli_stmt_attr_set(): Argument #2 ($attribute) must be either MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH or MYSQLI_STMT_ATTR_CURSOR_TYPE
173
173
mysqli_stmt::attr_set(): Argument #2 ($value) must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH
174
174
bool(true)
175
175
mysqli_stmt::attr_set(): Argument #2 ($value) must be one of the MYSQLI_CURSOR_TYPE_* constants for attribute MYSQLI_STMT_ATTR_CURSOR_TYPE
You can’t perform that action at this time.
0 commit comments