Annotation of embedaddon/php/ext/standard/tests/strings/bug26817.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #26817 (http_build_query() did not handle private & protected object properties)
        !             3: --FILE--
        !             4: <?php
        !             5: class 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();
        !            22: var_dump(http_build_query($obj));
        !            23: ?>
        !            24: --EXPECT--
        !            25: string(27) "foo=lala&bar=meuh&test=test"
        !            26: string(9) "test=test"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>