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

/PHP_TRUNK/ext/pdo/
H A Dpdo.c211 PDO_API int php_pdo_parse_data_source(const char *data_source, zend_ulong data_source_len, struct pdo_data_src_parser *parsed, int nparams) /* {{{ */ argument
225 if (data_source[i] == '\0') {
229 if (data_source[i] != '=') {
240 if (data_source[i] == '\0') {
244 if (data_source[i] == ';') {
245 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') {
264 if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\0') {
271 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns);
274 const char *orig_val = data_source + valstart;
300 while (i < data_source_len && isspace(data_source[
[all...]
H A Dphp_pdo_driver.h471 const char *data_source; member in struct:_pdo_dbh_t
674 PDO_API int php_pdo_parse_data_source(const char *data_source,
H A Dpdo_dbh.c202 char *data_source; local
212 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!a!", &data_source, &data_source_len,
219 colon = strchr(data_source, ':');
225 snprintf(alt_dsn, sizeof(alt_dsn), "pdo.dsn.%s", data_source);
232 data_source = ini_dsn;
233 colon = strchr(data_source, ':');
242 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) {
244 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn) TSRMLS_CC);
245 if (!data_source) {
[all...]
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c656 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 3);
/PHP_TRUNK/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_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c804 filename = make_filename_safe(dbh->data_source TSRMLS_CC);
809 dbh->data_source);
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c348 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars);
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c1186 e = (char *) dbh->data_source + strlen(dbh->data_source);
1187 p = (char *) dbh->data_source;
1221 spprintf(&conn_str, 0, "%s user=%s password=%s connect_timeout=%pd", dbh->data_source, dbh->username, tmp_pass, connect_timeout);
1223 spprintf(&conn_str, 0, "%s user=%s connect_timeout=%pd", dbh->data_source, dbh->username, connect_timeout);
1225 spprintf(&conn_str, 0, "%s password=%s connect_timeout=%pd", dbh->data_source, tmp_pass, connect_timeout);
1227 spprintf(&conn_str, 0, "%s connect_timeout=%pd", (char *) dbh->data_source, connect_timeout);

Completed in 12 milliseconds