Home
last modified time | relevance | path

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

/PHP-8.0/ext/pdo/
H A Dpdo.c150 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
165 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
169 if (data_source[i] != '=') { in php_pdo_parse_data_source()
180 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
184 if (data_source[i] == ';') { in php_pdo_parse_data_source()
185 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') { in php_pdo_parse_data_source()
204 …if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\… in php_pdo_parse_data_source()
211 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns); in php_pdo_parse_data_source()
214 const char *orig_val = data_source + valstart; in php_pdo_parse_data_source()
240 while (i < data_source_len && isspace(data_source[i])) { in php_pdo_parse_data_source()
H A Dpdo_dbh.c229 char *data_source; in PHP_METHOD() local
241 Z_PARAM_STRING(data_source, data_source_len) in PHP_METHOD()
249 colon = strchr(data_source, ':'); in PHP_METHOD()
261 data_source = ini_dsn; in PHP_METHOD()
262 colon = strchr(data_source, ':'); in PHP_METHOD()
270 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in PHP_METHOD()
272 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn)); in PHP_METHOD()
273 if (!data_source) { in PHP_METHOD()
277 colon = strchr(data_source, ':'); in PHP_METHOD()
284 driver = pdo_find_driver(data_source, colon - data_source); in PHP_METHOD()
[all …]
H A Dphp_pdo_driver.h477 const char *data_source; member
676 PDO_API int php_pdo_parse_data_source(const char *data_source,
/PHP-8.0/ext/pdo_odbc/
H A Dodbc_driver.c441 if (strchr(dbh->data_source, '=')) { in pdo_odbc_handle_factory()
448 if (dbh->username && *dbh->username && !strstr(dbh->data_source, "uid") in pdo_odbc_handle_factory()
449 && !strstr(dbh->data_source, "UID")) { in pdo_odbc_handle_factory()
451 spprintf(&dsn, 0, "%s;UID=%s;PWD=%s", dbh->data_source, dbh->username, dbh->password); in pdo_odbc_handle_factory()
452 pefree((char*)dbh->data_source, dbh->is_persistent); in pdo_odbc_handle_factory()
453 dbh->data_source = dsn; in pdo_odbc_handle_factory()
456 rc = SQLDriverConnect(H->dbc, NULL, (SQLCHAR *) dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
460 …rc = SQLConnect(H->dbc, (SQLCHAR *) dbh->data_source, SQL_NTS, (SQLCHAR *) dbh->username, SQL_NTS,… in pdo_odbc_handle_factory()
/PHP-8.0/ext/pdo_pgsql/
H A Dpgsql_driver.c1245 e = (char *) dbh->data_source + strlen(dbh->data_source); in pdo_pgsql_handle_factory()
1246 p = (char *) dbh->data_source; in pdo_pgsql_handle_factory()
1261 …user='%s' password='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_u… in pdo_pgsql_handle_factory()
1263 …spprintf(&conn_str, 0, "%s user='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, Z… in pdo_pgsql_handle_factory()
1265 …r, 0, "%s password='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_p… in pdo_pgsql_handle_factory()
1267 …spprintf(&conn_str, 0, "%s connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, connect_tim… in pdo_pgsql_handle_factory()
/PHP-8.0/ext/pdo_sqlite/
H A Dsqlite_driver.c785 filename = make_filename_safe(dbh->data_source); in pdo_sqlite_handle_factory()
790 dbh->data_source); in pdo_sqlite_handle_factory()
/PHP-8.0/ext/pdo_dblib/
H A Ddblib_driver.c466 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
/PHP-8.0/ext/pdo_oci/
H A Doci_driver.c724 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 4); in pdo_oci_handle_factory()
/PHP-8.0/ext/pdo_mysql/
H A Dmysql_driver.c641 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 7);
/PHP-8.0/ext/pdo_firebird/
H A Dfirebird_driver.c1039 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 6); in pdo_firebird_handle_factory()

Completed in 42 milliseconds