1--TEST--
2Bug #26817 (http_build_query() did not handle private & protected object properties)
3--FILE--
4<?php
5class test {
6	protected $foo;
7	private $bar;
8	public $test;
9
10	function foo()
11	{
12		$this->bar = 'meuh';
13		$this->foo = 'lala';
14		$this->test = 'test';
15
16		var_dump(http_build_query($this));
17	}
18}
19
20$obj = new test();
21$obj->foo();
22var_dump(http_build_query($obj));
23?>
24--EXPECT--
25string(27) "foo=lala&bar=meuh&test=test"
26string(9) "test=test"
27