summaryrefslogtreecommitdiff
path: root/ext/curl/tests/bug62839.phpt
blob: e6988d6de18000d57fcb2a094f3ed2b6d3273266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #62839 (curl_copy_handle segfault with CURLOPT_FILE)
--SKIPIF--
<?php if (!extension_loaded("curl")) print "skip"; 
?>
--FILE--
<?php
$curl = curl_init();

$fd = tmpfile();
curl_setopt($curl, CURLOPT_FILE, $fd);

curl_copy_handle($curl);

echo 'DONE!';
?>
--EXPECTF--
DONE!