From: bestmischmaker at web dot de
Operating system: Windows 2000
PHP version: 5CVS-2004-01-03 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: var_dump only dump public vars from classes
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....
--
Edit bug report at http://bugs.php.net/?id=26775&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26775&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26775&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26775&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26775&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26775&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26775&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26775&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26775&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26775&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26775&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26775&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26775&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26775&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26775&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26775&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26775&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26775&r=float