Searched refs:data_source (Results 1 - 8 of 8) sorted by relevance

/PHP_5_3/ext/pdo/
H A Dpdo.c215 PDO_API int php_pdo_parse_data_source(const char *data_source, argument
231 if (data_source[i] == '\0') {
235 if (data_source[i] != '=') {
246 if (data_source[i] == '\0') {
250 if (data_source[i] == ';') {
251 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') {
270 if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\0') {
277 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns);
280 char *orig_val = data_source + valstart;
306 while (i < data_source_len && isspace(data_source[
[all...]
H A Dpdo_dbh.c206 char *data_source; local
216 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!a!", &data_source, &data_source_len,
223 colon = strchr(data_source, ':');
229 snprintf(alt_dsn, sizeof(alt_dsn), "pdo.dsn.%s", data_source);
236 data_source = ini_dsn;
237 colon = strchr(data_source, ':');
246 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) {
248 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn) TSRMLS_CC);
249 if (!data_source) {
[all...]
H A Dphp_pdo_driver.h479 const char *data_source; member in struct:_pdo_dbh_t
650 PDO_API int php_pdo_parse_data_source(const char *data_source,
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_driver.c659 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 3);
/PHP_5_3/ext/pdo_odbc/
H A Dodbc_driver.c441 if (strchr(dbh->data_source, ';')) {
448 if (dbh->username && *dbh->username && !strstr(dbh->data_source, "uid")
449 && !strstr(dbh->data_source, "UID")) {
451 spprintf(&dsn, 0, "%s;UID=%s;PWD=%s", dbh->data_source, dbh->username, dbh->password);
452 pefree((char*)dbh->data_source, dbh->is_persistent);
453 dbh->data_source = dsn;
456 rc = SQLDriverConnect(H->dbc, NULL, (char*)dbh->data_source, strlen(dbh->data_source),
460 rc = SQLConnect(H->dbc, (char*)dbh->data_source, SQL_NTS, dbh->username, SQL_NTS, dbh->password, SQL_NTS);
/PHP_5_3/ext/pdo_sqlite/
H A Dsqlite_driver.c828 filename = make_filename_safe(dbh->data_source TSRMLS_CC);
833 dbh->data_source);
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c584 filename = make_filename_safe(dbh->data_source TSRMLS_CC);
589 dbh->data_source);
/PHP_5_3/ext/pdo_pgsql/
H A Dpgsql_driver.c1043 e = (char *) dbh->data_source + strlen(dbh->data_source);
1044 p = (char *) dbh->data_source;
1055 spprintf(&conn_str, 0, "%s user=%s password=%s connect_timeout=%ld", dbh->data_source, dbh->username, dbh->password, connect_timeout);
1057 spprintf(&conn_str, 0, "%s user=%s connect_timeout=%ld", dbh->data_source, dbh->username, connect_timeout);
1059 spprintf(&conn_str, 0, "%s password=%s connect_timeout=%ld", dbh->data_source, dbh->password, connect_timeout);
1061 spprintf(&conn_str, 0, "%s connect_timeout=%ld", (char *) dbh->data_source, connect_timeout);

Completed in 14 milliseconds