File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug26010.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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);
?>
--EXPECT--
array(1) {
  ["public"]=>
  string(6) "public"
}


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