Lines Matching refs:vars
590 struct pdo_data_src_parser vars[] = { local
623 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 7);
822 if (vars[0].optval && mysql_options(H->server, MYSQL_SET_CHARSET_NAME, vars[0].optval)) {
828 dbname = vars[1].optval;
829 host = vars[2].optval;
830 if(vars[3].optval) {
831 port = atoi(vars[3].optval);
835 if (vars[2].optval && !strcmp(".", vars[2].optval)) {
837 if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {
839 unix_socket = vars[4].optval;
842 if (!dbh->username && vars[5].optval) {
843 dbh->username = pestrdup(vars[5].optval, dbh->is_persistent);
846 if (!dbh->password && vars[6].optval) {
847 dbh->password = pestrdup(vars[6].optval, dbh->is_persistent);
882 for (i = 0; i < sizeof(vars)/sizeof(vars[0]); i++) {
883 if (vars[i].freeme) {
884 efree(vars[i].optval);