1--TEST--
2http_build_query() function with recursif object
3--FILE--
4<?php
5class KeyValStringable {
6    public $public = "input";
7    protected $protected = "hello";
8    private $private = "world";
9
10    public function __toString(): string {
11        return "Stringable";
12    }
13}
14
15$o = new KeyValStringable();
16
17var_dump(http_build_query($o));
18?>
19--EXPECT--
20string(12) "public=input"
21