copy driver name
authorMichael Wallner <mike@php.net>
Mon, 9 Feb 2015 08:24:09 +0000 (09:24 +0100)
committerMichael Wallner <mike@php.net>
Mon, 9 Feb 2015 08:24:09 +0000 (09:24 +0100)
php_http_client.c

index 4e55356ed4abf2f86f8c2a62914025c65d7b6f7e..92398f3e471f3c80597c4bb070721068a834f055 100644 (file)
@@ -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;