From: sh4dow at php dot pl
Operating system: Win2000
PHP version: 5.0.1
PHP Bug Type: Class/Object related
Bug description: private/protected variables are not protected
Description:
------------
The private and protected variables ar not protected. print_f or var_dump
display them without any errors.
Var_dump and print_f should have access from inside, but no outside.
Reproduce code:
---------------
<?php
class Foo {
private $password='pass1';
}
$foo = new Foo();
print_r($foo);
?>
Expected result:
----------------
null
Actual result:
--------------
Foo Object ( [password:private] => pass1 )
--
Edit bug report at http://bugs.php.net/?id=30135&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30135&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30135&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30135&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30135&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30135&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30135&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30135&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30135&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30135&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30135&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30135&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30135&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30135&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30135&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30135&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30135&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30135&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30135&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30135&r=mysqlcfg