ID: 43713 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Scripting Engine problem PHP Version: 5.3CVS-2007-12-30 (CVS) New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2007-12-30 20:44:28] [EMAIL PROTECTED] Description: ------------ I suppose that the result is unexpected. Reproduce code: --------------- <?php class foo { public $test1 = 1; private $test2 = 2; protected $test3 = 3; public function __construct() { while (list($key, $value) = each($this)) { print $key . ' => '. $value ."\n"; } } } new foo; Expected result: ---------------- test1 => 1 test2 => 2 test3 => 3 Actual result: -------------- test1 => 1 footest2 => 2 *test3 => 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43713&edit=1
