1--TEST-- 2Test curl_copy_handle() with CURLOPT_PROGRESSFUNCTION 3--SKIPIF-- 4<?php include 'skipif.inc'; ?> 5--FILE-- 6<?php 7 include 'server.inc'; 8 $host = curl_cli_server_start(); 9 10 $url = "{$host}/get.inc"; 11 $ch = curl_init($url); 12 13 curl_setopt($ch, CURLOPT_NOPROGRESS, 0); 14 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 15 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { }); 16 $ch2 = curl_copy_handle($ch); 17 echo curl_exec($ch), PHP_EOL; 18 unset($ch); 19 echo curl_exec($ch2); 20 21?> 22--EXPECT-- 23Hello World! 24Hello World! 25Hello World! 26Hello World! 27