Searched refs:quotedlen (Results 1 – 4 of 4) sorted by relevance
/php-src/ext/pdo_dblib/ |
H A D | dblib_driver.c | 151 size_t quotedlen = 0, extralen = 0; in dblib_handle_quoter() local 167 ++quotedlen; in dblib_handle_quoter() 170 quotedlen += 2; /* +2 for opening, closing quotes */ in dblib_handle_quoter() 172 ++quotedlen; /* N prefix */ in dblib_handle_quoter() 175 if (UNEXPECTED(quotedlen > ZSTR_MAX_LEN - extralen)) { in dblib_handle_quoter() 179 quotedlen += extralen; in dblib_handle_quoter() 180 quoted_str = zend_string_alloc(quotedlen, 0); in dblib_handle_quoter()
|
/php-src/ext/pdo_mysql/ |
H A D | mysql_driver.c | 313 size_t quotedlen; in mysql_handle_quoter() local 338 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 2, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter() 342 ++quotedlen; /* N prefix */ in mysql_handle_quoter() 344 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 8, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter() 347 quotedlen += 7; /* _binary prefix */ in mysql_handle_quoter() 349 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter() 353 quoted[++quotedlen] = '\''; in mysql_handle_quoter() 354 quoted[++quotedlen] = '\0'; in mysql_handle_quoter() 355 PDO_DBG_INF_FMT("quoted=%.*s", (int)quotedlen, quoted); in mysql_handle_quoter() 357 quoted_str = zend_string_truncate(quoted_str, quotedlen, false); in mysql_handle_quoter()
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 377 size_t quotedlen; in pgsql_handle_quoter() local 386 quotedlen = tmp_len + 1; in pgsql_handle_quoter() 387 quoted = emalloc(quotedlen + 1); in pgsql_handle_quoter() 388 memcpy(quoted+1, escaped, quotedlen-2); in pgsql_handle_quoter() 390 quoted[quotedlen-1] = '\''; in pgsql_handle_quoter() 391 quoted[quotedlen] = '\0'; in pgsql_handle_quoter() 397 …quotedlen = PQescapeStringConn(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), NULL… in pgsql_handle_quoter() 398 quoted[quotedlen + 1] = '\''; in pgsql_handle_quoter() 399 quoted[quotedlen + 2] = '\0'; in pgsql_handle_quoter() 400 quotedlen += 2; in pgsql_handle_quoter() [all …]
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_driver.c | 796 size_t quotedlen; in firebird_handle_quoter() local 811 quotedlen = ZSTR_LEN(unquoted) + qcount + 2; in firebird_handle_quoter() 812 quoted_str = zend_string_alloc(quotedlen, 0); in firebird_handle_quoter() 825 strncpy(c, l, quotedlen-(c-ZSTR_VAL(quoted_str))-1); in firebird_handle_quoter() 826 ZSTR_VAL(quoted_str)[quotedlen-1] = '\''; in firebird_handle_quoter() 827 ZSTR_VAL(quoted_str)[quotedlen] = '\0'; in firebird_handle_quoter()
|
Completed in 15 milliseconds