cvs: ZendEngine2 /tests bug26010.phpt
| From: | Moriyoshi Koizumi | Date: | Fri, 31 Oct 2003 17:12:16 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug26010.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1954@lists.php.net to get a copy of this message | ||
moriyoshi Fri Oct 31 12:12:16 2003 EDT
Added files:
/ZendEngine2/tests bug26010.phpt
Log:
Add test case for bug #26010
Index: ZendEngine2/tests/bug26010.phpt
+++ ZendEngine2/tests/bug26010.phpt
--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"
}