|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-03 07:59 UTC] derick@php.net
[2004-01-03 08:32 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Hy @ all i have a Problem with var_dump() i have write a class with private and public class vars... if i make a var_dump of this class to control my dev.....i only get the public vars..... is that a bug or is that what you want........ Reproduce code: --------------- class EMAIL { public $err_no,$err_msg; private $smtp = FALSE; private $use_sockets = FALSE; function __construct( $type ) { $this->smtp = $type; } } $email = new EMAIL( TRUE ); var_dump($email); Expected result: ---------------- return off all vars !!!! Actual result: -------------- only return public vars....