From a767ef7140c3688689d332443ac9ab1471e02adb Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 9 Feb 2015 09:24:09 +0100 Subject: [PATCH] copy driver name --- php_http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_http_client.c b/php_http_client.c index 4e55356..92398f3 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -50,7 +50,7 @@ static int apply_driver_list(zval *p, void *arg) php_http_client_driver_t *d = Z_PTR_P(p); zval zname; - ZVAL_STR(&zname, d->driver_name); + ZVAL_STR_COPY(&zname, d->driver_name); zend_hash_next_index_insert(arg, &zname); return ZEND_HASH_APPLY_KEEP; -- 2.30.2