Home
last modified time | relevance | path

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

/PHP-5.6/ext/pdo/
H A Dpdo.c215 PDO_API int php_pdo_parse_data_source(const char *data_source, in php_pdo_parse_data_source() argument
231 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
235 if (data_source[i] != '=') { in php_pdo_parse_data_source()
246 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
250 if (data_source[i] == ';') { in php_pdo_parse_data_source()
251 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') { in php_pdo_parse_data_source()
270 …if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\… in php_pdo_parse_data_source()
277 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns); in php_pdo_parse_data_source()
280 const char *orig_val = data_source + valstart; in php_pdo_parse_data_source()
306 while (i < data_source_len && isspace(data_source[i])) { in php_pdo_parse_data_source()
H A Dpdo_dbh.c206 char *data_source; in PHP_METHOD() local
223 colon = strchr(data_source, ':'); in PHP_METHOD()
237 data_source = ini_dsn; in PHP_METHOD()
238 colon = strchr(data_source, ':'); in PHP_METHOD()
247 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in PHP_METHOD()
249 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn) TSRMLS_CC); in PHP_METHOD()
250 if (!data_source) { in PHP_METHOD()
255 colon = strchr(data_source, ':'); in PHP_METHOD()
263 driver = pdo_find_driver(data_source, colon - data_source); in PHP_METHOD()
1518 if (dbh->data_source) { in dbh_free()
[all …]
H A Dphp_pdo_driver.h487 const char *data_source; member
655 PDO_API int php_pdo_parse_data_source(const char *data_source,
/PHP-5.6/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, (char*)dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
460 …rc = SQLConnect(H->dbc, (char*)dbh->data_source, SQL_NTS, dbh->username, SQL_NTS, dbh->password, S… in pdo_odbc_handle_factory()
/PHP-5.6/ext/pdo_pgsql/
H A Dpgsql_driver.c1221 e = (char *) dbh->data_source + strlen(dbh->data_source); in pdo_pgsql_handle_factory()
1222 p = (char *) dbh->data_source; in pdo_pgsql_handle_factory()
1237 …spprintf(&conn_str, 0, "%s user='%s' password='%s' connect_timeout=%ld", dbh->data_source, tmp_use… in pdo_pgsql_handle_factory()
1239 …spprintf(&conn_str, 0, "%s user='%s' connect_timeout=%ld", dbh->data_source, tmp_user, connect_tim… in pdo_pgsql_handle_factory()
1241 …spprintf(&conn_str, 0, "%s password='%s' connect_timeout=%ld", dbh->data_source, tmp_pass, connect… in pdo_pgsql_handle_factory()
1243 spprintf(&conn_str, 0, "%s connect_timeout=%ld", (char *) dbh->data_source, connect_timeout); in pdo_pgsql_handle_factory()
/PHP-5.6/ext/pdo_dblib/
H A Ddblib_driver.c307 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
/PHP-5.6/ext/pdo_sqlite/
H A Dsqlite_driver.c823 filename = make_filename_safe(dbh->data_source TSRMLS_CC); in pdo_sqlite_handle_factory()
828 dbh->data_source); in pdo_sqlite_handle_factory()
/PHP-5.6/ext/pdo_firebird/
H A Dfirebird_driver.c655 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 3); in pdo_firebird_handle_factory()
/PHP-5.6/ext/pdo_mysql/
H A Dmysql_driver.c575 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 5);
/PHP-5.6/ext/pdo_oci/
H A Doci_driver.c600 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 2); in pdo_oci_handle_factory()

Completed in 57 milliseconds