1--TEST-- 2GH-16359 - curl_setopt with CURLOPT_WRITEFUNCTION and no user fn 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7$log_file = tempnam(sys_get_temp_dir(), 'php-curl-CURLOPT_WRITEFUNCTION-trampoline'); 8$fp = fopen($log_file, 'w+'); 9fwrite($fp, "test"); 10$ch = curl_init(); 11curl_setopt($ch, CURLOPT_WRITEFUNCTION, null); 12curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file); 13curl_exec($ch); 14?> 15--EXPECT-- 16test 17