1--TEST--
2Test curl_copy_handle() function with basic functionality
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/');
17curl_setopt($ch, CURLOPT_HEADER, 0);
18
19// copy the handle
20$ch2 = curl_copy_handle($ch);
21
22var_dump(curl_getinfo($ch) === curl_getinfo($ch2));
23?>
24--EXPECT--
25*** Testing curl_copy_handle(): basic ***
26bool(true)
27