diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-31 17:12:16 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-31 17:12:16 +0000 |
commit | 2f27fe357404b33a29009eac56671de96eb4183b (patch) | |
tree | 52e7770225fa5055b9572ebb654d6739677bc950 /Zend/tests/bug26010.phpt | |
parent | f3102f9d6b29f7da3f266b12d2ede0b3006fbc8c (diff) | |
download | php-git-2f27fe357404b33a29009eac56671de96eb4183b.tar.gz |
Add test case for bug #26010
Diffstat (limited to 'Zend/tests/bug26010.phpt')
-rw-r--r-- | Zend/tests/bug26010.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/bug26010.phpt b/Zend/tests/bug26010.phpt new file mode 100644 index 0000000000..33988deffe --- /dev/null +++ b/Zend/tests/bug26010.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #26010 (private / protected variables get exposed by get_object_vars()) +--FILE-- +<?php +class foo { + private $private = 'private'; + protected $protected = 'protected'; + public $public = 'public'; +} +$data = new foo(); +$obj_vars = get_object_vars($data); +var_dump($obj_vars); +?> +--TEST-- +array(1) { + ["public"]=> + string(6) "public" +} + |