dis-bench / src /php /php-src /ext /curl /tests /bug52202.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
411 Bytes
--TEST--
Bug #52202 (CURLOPT_PRIVATE gets clobbered)
--EXTENSIONS--
curl
--FILE--
<?php
$curl = curl_init("http://www.google.com");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_PRIVATE, "123");
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 1);
curl_exec($curl);
var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
?>
--EXPECT--
string(3) "123"