Home
last modified time | relevance | path

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

/php-src/ext/pdo/
H A Dpdo.c157 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
172 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
176 if (data_source[i] != '=') { in php_pdo_parse_data_source()
187 if (data_source[i] == '\0') { in php_pdo_parse_data_source()
191 if (data_source[i] == ';') { in php_pdo_parse_data_source()
192 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') { in php_pdo_parse_data_source()
211 …if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\… in php_pdo_parse_data_source()
218 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns); in php_pdo_parse_data_source()
221 const char *orig_val = data_source + valstart; in php_pdo_parse_data_source()
247 while (i < data_source_len && isspace(data_source[i])) { in php_pdo_parse_data_source()
H A Dpdo_dbh.c305 char *data_source; in php_pdo_internal_construct_driver() local
317 Z_PARAM_STRING(data_source, data_source_len) in php_pdo_internal_construct_driver()
325 colon = strchr(data_source, ':'); in php_pdo_internal_construct_driver()
337 data_source = ini_dsn; in php_pdo_internal_construct_driver()
338 colon = strchr(data_source, ':'); in php_pdo_internal_construct_driver()
346 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in php_pdo_internal_construct_driver()
348 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn)); in php_pdo_internal_construct_driver()
349 if (!data_source) { in php_pdo_internal_construct_driver()
353 colon = strchr(data_source, ':'); in php_pdo_internal_construct_driver()
360 driver = pdo_find_driver(data_source, colon - data_source); in php_pdo_internal_construct_driver()
[all …]
H A Dphp_pdo_driver.h473 const char *data_source; member
679 PDO_API int php_pdo_parse_data_source(const char *data_source,
/php-src/ext/pdo_odbc/
H A Dodbc_driver.c524 if (strchr(dbh->data_source, '=')) { in pdo_odbc_handle_factory()
530 size_t db_len = strlen(dbh->data_source); in pdo_odbc_handle_factory()
531 …arg = dbh->username != NULL && !php_memnistr(dbh->data_source, "uid=", strlen("uid="), dbh->data_s… in pdo_odbc_handle_factory()
532 …arg = dbh->password != NULL && !php_memnistr(dbh->data_source, "pwd=", strlen("pwd="), dbh->data_s… in pdo_odbc_handle_factory()
536 strcpy(db, dbh->data_source); in pdo_odbc_handle_factory()
589 pefree((char*)dbh->data_source, dbh->is_persistent); in pdo_odbc_handle_factory()
590 dbh->data_source = dsn; in pdo_odbc_handle_factory()
600 rc = SQLDriverConnect(H->dbc, NULL, (SQLCHAR *) dbh->data_source, strlen(dbh->data_source), in pdo_odbc_handle_factory()
604 …rc = SQLConnect(H->dbc, (SQLCHAR *) dbh->data_source, SQL_NTS, (SQLCHAR *) dbh->username, SQL_NTS,… in pdo_odbc_handle_factory()
/php-src/ext/pdo_pgsql/
H A Dpgsql_driver.c1399 e = (char *) dbh->data_source + strlen(dbh->data_source); in pdo_pgsql_handle_factory()
1400 p = (char *) dbh->data_source; in pdo_pgsql_handle_factory()
1410 …tmp_user = !strstr((char *) dbh->data_source, "user=") ? _pdo_pgsql_escape_credentials(dbh->userna… in pdo_pgsql_handle_factory()
1411 …tmp_pass = !strstr((char *) dbh->data_source, "password=") ? _pdo_pgsql_escape_credentials(dbh->pa… in pdo_pgsql_handle_factory()
1413 smart_str_appends(&conn_str, dbh->data_source); in pdo_pgsql_handle_factory()
/php-src/ext/pdo_sqlite/
H A Dsqlite_driver.c813 filename = make_filename_safe(dbh->data_source); in pdo_sqlite_handle_factory()
818 dbh->data_source); in pdo_sqlite_handle_factory()
/php-src/ext/pdo_dblib/
H A Ddblib_driver.c486 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars); in pdo_dblib_handle_factory()
/php-src/ext/pdo_mysql/
H A Dmysql_driver.c717 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 7);
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c1338 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 6); in pdo_firebird_handle_factory()

Completed in 83 milliseconds