Home
last modified time | relevance | path

Searched refs:unquoted (Results 1 – 13 of 13) sorted by relevance

/PHP-8.2/ext/pdo/tests/
H A Dpdo_033.phpt19 $unquoted = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst…
21 $quoted = $db->quote($unquoted);
23 $len = strlen($unquoted);
/PHP-8.2/ext/standard/tests/general_functions/
H A Dbug70157.phpt2 parse_ini_string() crashes on values starting with number or unquoted strings
H A Dparse_ini_basic.data136 ; is single-quoted string, followed by unquoted text, followed by single-quoted '.'
/PHP-8.2/ext/pdo_sqlite/tests/
H A Dbug81740.phpt2 Bug #81740 (PDO::quote() may return unquoted string)
/PHP-8.2/ext/pdo_dblib/
H A Ddblib_driver.c145 static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param… in dblib_handle_quoter() argument
165 for (i = 0; i < ZSTR_LEN(unquoted); i++) { in dblib_handle_quoter()
166 if (ZSTR_VAL(unquoted)[i] == '\'') ++quotedlen; in dblib_handle_quoter() local
181 for (i = 0; i < ZSTR_LEN(unquoted); i++) { in dblib_handle_quoter()
182 if (ZSTR_VAL(unquoted)[i] == '\'') { in dblib_handle_quoter() local
186 *q++ = ZSTR_VAL(unquoted)[i]; in dblib_handle_quoter()
/PHP-8.2/ext/pdo_mysql/
H A Dmysql_driver.c308 static zend_string* mysql_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param… in mysql_handle_quoter() argument
328 PDO_DBG_INF_FMT("unquoted=%.*s", (int)ZSTR_LEN(unquoted), ZSTR_VAL(unquoted)); in mysql_handle_quoter()
329 quoted = safe_emalloc(2, ZSTR_LEN(unquoted), 3 + (use_national_character_set ? 1 : 0)); in mysql_handle_quoter()
332 …ysql_real_escape_string_quote(H->server, quoted + 2, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), '\''); in mysql_handle_quoter()
338 …ysql_real_escape_string_quote(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), '\''); in mysql_handle_quoter()
/PHP-8.2/ext/pdo_sqlite/
H A Dsqlite_driver.c227 static zend_string* sqlite_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_para… in sqlite_handle_quoter() argument
230 if (ZSTR_LEN(unquoted) > (INT_MAX - 3) / 2) { in sqlite_handle_quoter()
233 quoted = safe_emalloc(2, ZSTR_LEN(unquoted), 3); in sqlite_handle_quoter()
235 sqlite3_snprintf(2*ZSTR_LEN(unquoted) + 3, quoted, "'%q'", ZSTR_VAL(unquoted)); in sqlite_handle_quoter()
/PHP-8.2/ext/pdo_firebird/
H A Dfirebird_driver.c665 static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_pa… in firebird_handle_quoter() argument
673 if (ZSTR_LEN(unquoted) == 0) { in firebird_handle_quoter()
679 for (co = ZSTR_VAL(unquoted); (co = strchr(co,'\'')); qcount++, co++); in firebird_handle_quoter()
681 quotedlen = ZSTR_LEN(unquoted) + qcount + 2; in firebird_handle_quoter()
687 for (l = ZSTR_VAL(unquoted); (r = strchr(l,'\'')); l = r+1) { in firebird_handle_quoter()
/PHP-8.2/ext/pdo_oci/
H A Doci_driver.c357 static zend_string* oci_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param_t… in oci_handle_quoter() argument
365 if (ZSTR_LEN(unquoted) == 0) { in oci_handle_quoter()
370 for (cu = ZSTR_VAL(unquoted); (cu = strchr(cu,'\'')); qcount++, cu++) in oci_handle_quoter()
373 quotedlen = ZSTR_LEN(unquoted) + qcount + 2; in oci_handle_quoter()
378 for (l = ZSTR_VAL(unquoted); (r = strchr(l,'\'')); l = r+1) { in oci_handle_quoter()
/PHP-8.2/ext/pdo_oci/tests/
H A Dpdo_oci_quote1.phpt21 // The intent is that the fetched data be identical to the unquoted string.
/PHP-8.2/ext/pdo_pgsql/
H A Dpgsql_driver.c348 static zend_string* pgsql_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param… in pgsql_handle_quoter() argument
360 …escaped = PQescapeByteaConn(H->server, (unsigned char *)ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), &t… in pgsql_handle_quoter()
370 quoted = safe_emalloc(2, ZSTR_LEN(unquoted), 3); in pgsql_handle_quoter()
372 …quotedlen = PQescapeStringConn(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), NULL… in pgsql_handle_quoter()
/PHP-8.2/ext/pdo/
H A Dphp_pdo_driver.h232 typedef zend_string* (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_pa…
/PHP-8.2/
H A DNEWS1520 . Fixed bug #81740 (PDO::quote() may return unquoted string). (CVE-2022-31631)

Completed in 56 milliseconds