1--TEST-- 2Bug # #68937 (Segfault in curl_multi_exec) 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7 8include 'server.inc'; 9$host = curl_cli_server_start(); 10 11$url = "{$host}/get.inc"; 12 13$ch = curl_init($url); 14curl_setopt_array($ch, array( 15 CURLOPT_HEADER => false, 16 CURLOPT_RETURNTRANSFER => true, 17 CURLOPT_POST => true, 18 CURLOPT_INFILESIZE => 1, 19 CURLOPT_HTTPHEADER => array( 20 'Expect:', 21 'Content-Length: 1', 22 ), 23 CURLOPT_READFUNCTION => 'curl_read', 24 CURLOPT_CONNECTTIMEOUT=> 1, 25 CURLOPT_TIMEOUT=>1 26)); 27 28function curl_read($ch, $fp, $len) { 29 var_dump($fp); 30 exit; 31} 32 33curl_exec($ch); 34curl_close($ch); 35?> 36--EXPECT-- 37NULL 38