Home
last modified time | relevance | path

Searched refs:quotedlen (Results 1 – 5 of 5) sorted by relevance

/PHP-8.2/ext/pdo_dblib/
H A Ddblib_driver.c151 size_t quotedlen = 0; in dblib_handle_quoter() local
166 if (ZSTR_VAL(unquoted)[i] == '\'') ++quotedlen; in dblib_handle_quoter()
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()
174 quoted_str = zend_string_alloc(quotedlen, 0); in dblib_handle_quoter()
/PHP-8.2/ext/pdo_mysql/
H A Dmysql_driver.c313 size_t quotedlen; in mysql_handle_quoter() local
332quotedlen = mysql_real_escape_string_quote(H->server, quoted + 2, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
336 ++quotedlen; /* N prefix */ in mysql_handle_quoter()
338quotedlen = mysql_real_escape_string_quote(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
342 quoted[++quotedlen] = '\''; in mysql_handle_quoter()
343 quoted[++quotedlen] = '\0'; in mysql_handle_quoter()
344 PDO_DBG_INF_FMT("quoted=%.*s", (int)quotedlen, quoted); in mysql_handle_quoter()
346 quoted_str = zend_string_init(quoted, quotedlen, 0); in mysql_handle_quoter()
/PHP-8.2/ext/pdo_pgsql/
H A Dpgsql_driver.c352 size_t quotedlen; in pgsql_handle_quoter() local
361 quotedlen = tmp_len + 1; in pgsql_handle_quoter()
362 quoted = emalloc(quotedlen + 1); in pgsql_handle_quoter()
363 memcpy(quoted+1, escaped, quotedlen-2); in pgsql_handle_quoter()
365 quoted[quotedlen-1] = '\''; in pgsql_handle_quoter()
366 quoted[quotedlen] = '\0'; in pgsql_handle_quoter()
372quotedlen = PQescapeStringConn(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), NULL… in pgsql_handle_quoter()
373 quoted[quotedlen + 1] = '\''; in pgsql_handle_quoter()
374 quoted[quotedlen + 2] = '\0'; in pgsql_handle_quoter()
375 quotedlen += 2; in pgsql_handle_quoter()
[all …]
/PHP-8.2/ext/pdo_oci/
H A Doci_driver.c362 size_t quotedlen; in oci_handle_quoter() local
373 quotedlen = ZSTR_LEN(unquoted) + qcount + 2; in oci_handle_quoter()
374 quoted = c = emalloc(quotedlen+1); in oci_handle_quoter()
385 strncpy(c, l, quotedlen-(c-quoted)-1); in oci_handle_quoter()
386 quoted[quotedlen-1] = '\''; in oci_handle_quoter()
387 quoted[quotedlen] = '\0'; in oci_handle_quoter()
389 quoted_str = zend_string_init(quoted, quotedlen, 0); in oci_handle_quoter()
/PHP-8.2/ext/pdo_firebird/
H A Dfirebird_driver.c670 size_t quotedlen; in firebird_handle_quoter() local
681 quotedlen = ZSTR_LEN(unquoted) + qcount + 2; in firebird_handle_quoter()
682 quoted_str = zend_string_alloc(quotedlen, 0); in firebird_handle_quoter()
695 strncpy(c, l, quotedlen-(c-ZSTR_VAL(quoted_str))-1); in firebird_handle_quoter()
696 ZSTR_VAL(quoted_str)[quotedlen-1] = '\''; in firebird_handle_quoter()
697 ZSTR_VAL(quoted_str)[quotedlen] = '\0'; in firebird_handle_quoter()

Completed in 31 milliseconds