xref: /PHP-5.6/ext/curl/tests/bug52202.phpt (revision 94ca4a4d)
1--TEST--
2Bug #52202 (CURLOPT_PRIVATE gets clobbered)
3--SKIPIF--
4<?php
5if (!extension_loaded('curl')) exit("skip curl extension not loaded");
6?>
7--FILE--
8<?php
9$curl = curl_init("http://www.google.com");
10curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
11curl_setopt($curl, CURLOPT_PRIVATE, "123");
12curl_exec($curl);
13
14var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
15--EXPECT--
16string(3) "123"
17