Annotation of embedaddon/php/Zend/tests/bug26010.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #26010 (private / protected variables get exposed by get_object_vars())
                      3: --FILE--
                      4: <?php
                      5: class foo {
                      6:        private $private = 'private';
                      7:        protected $protected = 'protected';
                      8:        public $public = 'public';
                      9: }
                     10: $data = new foo();
                     11: $obj_vars = get_object_vars($data);
                     12: var_dump($obj_vars);
                     13: ?>
                     14: --EXPECT--
                     15: array(1) {
                     16:   ["public"]=>
                     17:   string(6) "public"
                     18: }
                     19: 

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