summaryrefslogtreecommitdiff
path: root/ext/curl/tests/bug52202.phpt
blob: a304d7f77a89e34ad1726340ef176f97a639c9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #52202 (CURLOPT_PRIVATE gets clobbered)
--SKIPIF--
<?php
if (!extension_loaded('curl')) exit("skip curl extension not loaded");
?>
--FILE--
<?php
$curl = curl_init("http://www.google.com");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_PRIVATE, "123");
curl_exec($curl);

var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
--EXPECT--
string(3) "123"