Lines Matching refs:data_source
206 char *data_source; in PHP_METHOD() local
216 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!a!", &data_source, &data_so… in PHP_METHOD()
223 colon = strchr(data_source, ':'); in PHP_METHOD()
229 snprintf(alt_dsn, sizeof(alt_dsn), "pdo.dsn.%s", 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()
286 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s:%s", data_source, in PHP_METHOD()
300 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s", data_source, in PHP_METHOD()
372 dbh->data_source = (const char*)pestrdup(colon + 1, is_persistent); in PHP_METHOD()
380 if (!dbh->data_source || (username && !dbh->username) || (password && !dbh->password)) { in PHP_METHOD()
1518 if (dbh->data_source) { in dbh_free()
1519 pefree((char *)dbh->data_source, dbh->is_persistent); in dbh_free()