X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.c;h=92398f3e471f3c80597c4bb070721068a834f055;hp=4e55356ed4abf2f86f8c2a62914025c65d7b6f7e;hb=a767ef7140c3688689d332443ac9ab1471e02adb;hpb=be9585b914061f84c5d5939673d29ecc048ab1d7 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;