Home
last modified time | relevance | path

Searched refs:data_source (Results 1 – 10 of 10) sorted by relevance

/PHP-8.3/ext/pdo/
H A Dpdo.c142 PDO_API int php_pdo_parse_data_source(const char *data_source, zend_ulong data_source_len, struct p… in php_pdo_parse_data_source() argument
157 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
161 if (data_source[i] != '=') { in php_pdo_parse_data_source()
172 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
176 if (data_source[i] == ';') { in php_pdo_parse_data_source()
177 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') { in php_pdo_parse_data_source()
196 …if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\… in php_pdo_parse_data_source()
203 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns); in php_pdo_parse_data_source()
206 const char *orig_val = data_source + valstart; in php_pdo_parse_data_source()
232 while (i < data_source_len && isspace(data_source[i])) { in php_pdo_parse_data_source()
H A Dpdo_dbh.c230 char *data_source; in PHP_METHOD() local
242 Z_PARAM_STRING(data_source, data_source_len) in PHP_METHOD()
250 colon = strchr(data_source, ':'); in PHP_METHOD()
262 data_source = ini_dsn; in PHP_METHOD()
263 colon = strchr(data_source, ':'); in PHP_METHOD()
271 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in PHP_METHOD()
273 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn)); in PHP_METHOD()
274 if (!data_source) { in PHP_METHOD()
278 colon = strchr(data_source, ':'); in PHP_METHOD()
285 driver = pdo_find_driver(data_source, colon - data_source); in PHP_METHOD()
[all …]
H A Dphp_pdo_driver.h468 const char *data_source; member
665 PDO_API int php_pdo_parse_data_source(const char *data_source,
/PHP-8.3/ext/pdo_odbc/
H A Dodbc_driver.c523 if (strchr(dbh->data_source, '=')) { in pdo_odbc_handle_factory()
531 && !strstr(dbh->data_source, "uid=") in pdo_odbc_handle_factory()
532 && !strstr(dbh->data_source, "UID="); in pdo_odbc_handle_factory()
534 && !strstr(dbh->data_source, "pwd=") in pdo_odbc_handle_factory()
535 && !strstr(dbh->data_source, "PWD="); in pdo_odbc_handle_factory()
554 size_t new_dsn_size = strlen(dbh->data_source) in pdo_odbc_handle_factory()
558 snprintf(dsn, new_dsn_size, "%s;UID=%s;PWD=%s", dbh->data_source, uid, pwd); in pdo_odbc_handle_factory()
559 pefree((char*)dbh->data_source, dbh->is_persistent); in pdo_odbc_handle_factory()
560 dbh->data_source = dsn; in pdo_odbc_handle_factory()
569 rc = SQLDriverConnect(H->dbc, NULL, (SQLCHAR *) dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
[all …]
/PHP-8.3/ext/pdo_pgsql/
H A Dpgsql_driver.c1273 e = (char *) dbh->data_source + strlen(dbh->data_source); in pdo_pgsql_handle_factory()
1274 p = (char *) dbh->data_source; in pdo_pgsql_handle_factory()
1289 …user='%s' password='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_u… in pdo_pgsql_handle_factory()
1291 …spprintf(&conn_str, 0, "%s user='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, Z… in pdo_pgsql_handle_factory()
1293 …r, 0, "%s password='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_p… in pdo_pgsql_handle_factory()
1295 …spprintf(&conn_str, 0, "%s connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, connect_tim… in pdo_pgsql_handle_factory()
/PHP-8.3/ext/pdo_sqlite/
H A Dsqlite_driver.c792 filename = make_filename_safe(dbh->data_source); in pdo_sqlite_handle_factory()
797 dbh->data_source); in pdo_sqlite_handle_factory()
/PHP-8.3/ext/pdo_dblib/
H A Ddblib_driver.c485 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
/PHP-8.3/ext/pdo_firebird/
H A Dfirebird_driver.c1049 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 6); in pdo_firebird_handle_factory()
/PHP-8.3/ext/pdo_mysql/
H A Dmysql_driver.c701 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 7);
/PHP-8.3/ext/pdo_oci/
H A Doci_driver.c736 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 4); in pdo_oci_handle_factory()

Completed in 47 milliseconds