From: Michael Wallner Date: Mon, 9 Feb 2015 08:24:09 +0000 (+0100) Subject: copy driver name X-Git-Tag: RELEASE_3_0_0_RC1~63 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a767ef7140c3688689d332443ac9ab1471e02adb;p=m6w6%2Fext-http copy driver name --- 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;