Skip to content

Commit

Permalink
move state setting to the right place, in mysqlnd_init, no more
Browse files Browse the repository at this point in the history
in mysqlnd::connect
  • Loading branch information
faizshukri committed Dec 22, 2009
1 parent 9309f2b commit e1251ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mysqlnd/mysqlnd.c
Expand Up @@ -531,8 +531,6 @@ MYSQLND_METHOD(mysqlnd_conn, connect)(MYSQLND *conn,
PACKET_INIT(auth_packet, PROT_AUTH_PACKET, php_mysql_packet_auth *, FALSE);
PACKET_INIT_ALLOCA(ok_packet, PROT_OK_PACKET);

CONN_SET_STATE(conn, CONN_ALLOCED);

if (conn->persistent) {
conn->scheme = pestrndup(transport, transport_len, 1);
mnd_efree(transport);
Expand Down Expand Up @@ -2104,6 +2102,8 @@ PHPAPI MYSQLND *_mysqlnd_init(zend_bool persistent TSRMLS_DC)

ret->net = mysqlnd_net_init(persistent TSRMLS_CC);

CONN_SET_STATE(ret, CONN_ALLOCED);

DBG_RETURN(ret);
}
/* }}} */
Expand Down

0 comments on commit e1251ed

Please sign in to comment.