/PHP-8.2/ext/pdo/tests/ |
H A D | pdo_033.phpt | 19 $unquoted = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst… 21 $quoted = $db->quote($unquoted); 23 $len = strlen($unquoted);
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | bug70157.phpt | 2 parse_ini_string() crashes on values starting with number or unquoted strings
|
H A D | parse_ini_basic.data | 136 ; is single-quoted string, followed by unquoted text, followed by single-quoted '.'
|
/PHP-8.2/ext/pdo_sqlite/tests/ |
H A D | bug81740.phpt | 2 Bug #81740 (PDO::quote() may return unquoted string)
|
/PHP-8.2/ext/pdo_dblib/ |
H A D | dblib_driver.c | 145 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 D | mysql_driver.c | 308 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 D | sqlite_driver.c | 227 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 D | firebird_driver.c | 665 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 D | oci_driver.c | 357 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 D | pdo_oci_quote1.phpt | 21 // The intent is that the fetched data be identical to the unquoted string.
|
/PHP-8.2/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 348 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 D | php_pdo_driver.h | 232 typedef zend_string* (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_pa…
|
/PHP-8.2/ |
H A D | NEWS | 1759 . Fixed bug #81740 (PDO::quote() may return unquoted string). (CVE-2022-31631)
|