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
Copy file name to clipboardExpand all lines: ext/pdo/pdo_dbh.c
+6-13
Original file line number
Diff line number
Diff line change
@@ -1119,18 +1119,17 @@ PHP_METHOD(PDO, query)
1119
1119
}
1120
1120
/* }}} */
1121
1121
1122
-
/* {{{ quotes string for use in a query. The optional paramtype acts as a hint for drivers that have alternate quoting styles. The default value is PDO_PARAM_STR */
1122
+
/* {{{ quotes string for use in a query.
1123
+
* The optional paramtype acts as a hint for drivers that have alternate quoting styles.
1124
+
* The default value is PDO_PARAM_STR */
1123
1125
PHP_METHOD(PDO, quote)
1124
1126
{
1125
1127
pdo_dbh_t*dbh=Z_PDO_DBH_P(ZEND_THIS);
1126
-
char*str;
1127
-
size_tstr_len;
1128
+
zend_string*str;
1128
1129
zend_longparamtype=PDO_PARAM_STR;
1129
-
char*qstr;
1130
-
size_tqlen;
1131
1130
1132
1131
ZEND_PARSE_PARAMETERS_START(1, 2)
1133
-
Z_PARAM_STRING(str, str_len)
1132
+
Z_PARAM_STR(str)
1134
1133
Z_PARAM_OPTIONAL
1135
1134
Z_PARAM_LONG(paramtype)
1136
1135
ZEND_PARSE_PARAMETERS_END();
@@ -1143,13 +1142,7 @@ PHP_METHOD(PDO, quote)
1143
1142
RETURN_FALSE;
1144
1143
}
1145
1144
1146
-
if (dbh->methods->quoter(dbh, str, str_len, &qstr, &qlen, paramtype)) {
0 commit comments