xref: /PHP-7.0/ext/curl/tests/bug62839.phpt (revision e66a5ce5)
1--TEST--
2Bug #62839 (curl_copy_handle segfault with CURLOPT_FILE)
3--SKIPIF--
4<?php if (!extension_loaded("curl")) print "skip";
5?>
6--FILE--
7<?php
8$curl = curl_init();
9
10$fd = tmpfile();
11curl_setopt($curl, CURLOPT_FILE, $fd);
12
13curl_copy_handle($curl);
14
15echo 'DONE!';
16?>
17--EXPECTF--
18DONE!
19