You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zend_type_error("PDO::ATTR_STATEMENT_CLASS value must be of type array, %s given",
909
+
zend_argument_type_error(value_arg_num, "PDO::ATTR_STATEMENT_CLASS value must be of type array, %s given",
910
910
zend_zval_value_name(value));
911
911
return false;
912
912
}
913
913
if ((item=zend_hash_index_find(Z_ARRVAL_P(value), 0)) ==NULL) {
914
-
zend_value_error("PDO::ATTR_STATEMENT_CLASS value must be an array with the format "
914
+
zend_argument_value_error(value_arg_num, "PDO::ATTR_STATEMENT_CLASS value must be an array with the format "
915
915
"array(classname, constructor_args)");
916
916
return false;
917
917
}
918
918
if (Z_TYPE_P(item) !=IS_STRING|| (pce=zend_lookup_class(Z_STR_P(item))) ==NULL) {
919
-
zend_type_error("PDO::ATTR_STATEMENT_CLASS class must be a valid diff-9a6d6a4359a98668fef29400492f877938424d1b1d2e84933c91ab34161cf360-919-919-0" data-selected="false" role="gridcell" tabindex="-1">
919
+
zend_argument_type_error(value_arg_num, "PDO::ATTR_STATEMENT_CLASS class must be a valid class");
920
920
return false;
921
921
}
922
922
if (!instanceof_function(pce, pdo_dbstmt_ce)) {
923
-
zend_type_error("PDO::ATTR_STATEMENT_CLASS class must be derived from PDOStatement");
923
+
zend_argument_type_error(value_arg_num, "PDO::ATTR_STATEMENT_CLASS class must be derived from PDOStatement");
924
924
return false;
925
925
}
926
926
if (pce->constructor&& !(pce->constructor->common.fn_flags& (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED))) {
927
-
zend_type_error("User-supplied statement class cannot have a public constructor");
927
+
zend_argument_type_error(value_arg_num, "User-supplied statement class cannot have a public constructor");
Copy file name to clipboardExpand all lines: ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ error_reporting=E_ALL
158
158
TypeError: Attribute value must be of type int for selected attribute, array given
159
159
TypeError: Attribute value must be of type int for selected attribute, stdClass given
160
160
TypeError: Attribute value must be of type int for selected attribute, string given
161
-
ValueError: Error mode must be one of the PDO::ERRMODE_* constants
161
+
ValueError: PDO::setAttribute(): Argument #2 ($value) Error mode must be one of the PDO::ERRMODE_* constants
162
162
163
163
Warning: PDO::query(): SQLSTATE[42000]: Syntax error or access violation: %d You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near '%s' at line %d in %s on line %d
0 commit comments