summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-10-15 15:49:40 +0000
committerUlf Wendel <uw@php.net>2009-10-15 15:49:40 +0000
commitab4670ee53b8ef48e0a7f012f3bc26b2297df6c2 (patch)
treed551a3c2a674f921d986720e06786f5daba14eed /ext/mysqlnd/mysqlnd_wireprotocol.c
parente4adfe4f61cb54c4da6e8144f82d6f6cc9d6e797 (diff)
downloadphp-git-ab4670ee53b8ef48e0a7f012f3bc26b2297df6c2.tar.gz
Fixing problems when calling connect (again and again) on a valid connection handle. Most of the patch comes from Andrey.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index cc0697cd0b..ea77bdc0bf 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -589,7 +589,7 @@ php_mysqlnd_greet_read(void *_packet, MYSQLND *conn TSRMLS_DC)
DBG_RETURN(PASS);
}
- packet->server_version = pestrdup((char *)p, conn->persistent);
+ packet->server_version = estrdup((char *)p);
p+= strlen(packet->server_version) + 1; /* eat the '\0' */
packet->thread_id = uint4korr(p);