1--TEST-- 2Test curl_copy_handle() change options in one handle 3--CREDITS-- 4Francesco Fullone ff@ideato.it 5#PHPTestFest Cesena Italia on 2009-06-20 6--EXTENSIONS-- 7curl 8--FILE-- 9<?php 10echo "*** Testing curl_copy_handle(): basic ***\n"; 11 12// create a new cURL resource 13$ch = curl_init(); 14 15// set URL and other appropriate options 16curl_setopt($ch, CURLOPT_URL, 'http://www.example.com/'); 17 18// copy the handle 19$ch2 = curl_copy_handle($ch); 20 21// change the CURLOPT_URL for the second handle 22curl_setopt($ch2, CURLOPT_URL, 'http://www.bar.com/'); 23 24var_dump(curl_getinfo($ch) === curl_getinfo($ch2)); 25?> 26--EXPECT-- 27*** Testing curl_copy_handle(): basic *** 28bool(false) 29