Lines Matching refs:data_source
282 char *data_source; in internal_construct() local
294 Z_PARAM_STRING(data_source, data_source_len) in internal_construct()
302 colon = strchr(data_source, ':'); in internal_construct()
308 snprintf(alt_dsn, sizeof(alt_dsn), "pdo.dsn.%s", data_source); in internal_construct()
314 data_source = ini_dsn; in internal_construct()
315 colon = strchr(data_source, ':'); in internal_construct()
323 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) { in internal_construct()
325 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn)); in internal_construct()
326 if (!data_source) { in internal_construct()
330 colon = strchr(data_source, ':'); in internal_construct()
337 driver = pdo_find_driver(data_source, colon - data_source); in internal_construct()
369 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s:%s", data_source, in internal_construct()
376 plen = spprintf(&hashkey, 0, "PDO:DBH:DSN=%s:%s:%s", data_source, in internal_construct()
428 dbh->data_source = (const char*)pestrdup(colon + 1, is_persistent); in internal_construct()
437 if (!dbh->data_source || (username && !dbh->username) || (password && !dbh->password)) { in internal_construct()
1452 if (dbh->data_source) { in dbh_free()
1453 pefree((char *)dbh->data_source, dbh->is_persistent); in dbh_free()