1--TEST-- 2Bug #67643 (curl_multi_getcontent returns '' when RETURNTRANSFER isn't set) 3--SKIPIF-- 4<?php 5if (!extension_loaded('curl')) print 'skip'; 6?> 7--FILE-- 8<?php 9 $ch = curl_init(); 10 curl_setopt($ch, CURLOPT_URL, 'file://'. dirname(__FILE__) . DIRECTORY_SEPARATOR .'curl_testdata1.txt'); 11 curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); 12 13 $mh = curl_multi_init(); 14 curl_multi_add_handle($mh, $ch); 15 16 $running = 0; 17 do { 18 curl_multi_exec($mh, $running); 19 } while($running > 0); 20 21 $results = curl_multi_getcontent($ch); 22 23 curl_multi_remove_handle($mh, $ch); 24 curl_multi_close($mh); 25 26 var_dump($results); 27?> 28--EXPECT-- 29CURL1 30NULL 31