1--TEST--
2http_build_query() function with object
3--FILE--
4<?php
5class KeyVal {
6    public $public = "input";
7    protected $protected = "hello";
8    private $private = "world";
9}
10
11$o = new KeyVal();
12
13// Percent encoded "public=input"
14var_dump(http_build_query($o));
15?>
16--EXPECT--
17string(12) "public=input"
18