xref: /php-src/ext/curl/tests/bug52202.phpt (revision 39131219)
1--TEST--
2Bug #52202 (CURLOPT_PRIVATE gets clobbered)
3--EXTENSIONS--
4curl
5--FILE--
6<?php
7$curl = curl_init("http://www.google.com");
8curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
9curl_setopt($curl, CURLOPT_PRIVATE, "123");
10curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
11curl_setopt($curl, CURLOPT_TIMEOUT, 1);
12curl_exec($curl);
13
14var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
15?>
16--EXPECT--
17string(3) "123"
18