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