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