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()
236 data_source = ini_dsn; in PHP_METHOD()
237 colon = strchr(data_source, ':'); in PHP_METHOD()
246 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in PHP_METHOD()
248 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn) TSRMLS_CC); in PHP_METHOD()
249 if (!data_source) { in PHP_METHOD()
254 colon = strchr(data_source, ':'); in PHP_METHOD()
262 driver = pdo_find_driver(data_source, colon - data_source); in PHP_METHOD()
285 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s:%s", data_source, in PHP_METHOD()
293 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s", data_source, in PHP_METHOD()
361 dbh->data_source = (const char*)pestrdup(colon + 1, is_persistent); in PHP_METHOD()
369 if (!dbh->data_source || (username && !dbh->username) || (password && !dbh->password)) { in PHP_METHOD()
1514 if (dbh->data_source) { in dbh_free()
1515 pefree((char *)dbh->data_source, dbh->is_persistent); in dbh_free()