From: romdisc at gmx dot net Operating system: Linux-2.6.8 PHP version: 5.1.1 PHP Bug Type: Session related Bug description: private members are not serialized properly
Description: ------------ Hello, ** my system: debian apache2 php module 5.0.5-3 this is a variation of bug 26737! My superclass of ProductItem implements a private members. Those are not covered with the fix of bug 26737. Last 2 lines (__vat, __vatMode) of 'Actual Result' are inherited from superclass. __wakeup() ignores given values if present. Here is snaps:hot from sess_file: O:11:"ProductItem":4:{s:13:"[EMAIL PROTECTED]@__quantity";i:5;s:5:"__vat";N; s:9:"__vatMode";R:3;s:17:"[EMAIL PROTECTED]@__id";i:5044;} Reproduce code: --------------- // investigate your session file Expected result: ---------------- ProductItem Object ( [__id:private] => 5044 [__product:private] => [__vat:private] => [__vatMode:private] => [__quantity:protected] => 5 ) Actual result: -------------- ProductItem Object ( [__id:private] => 5044 [__product:private] => [__vat:private] => [__vatMode:private] => [__quantity:protected] => 5 [__vat] => [__vatMode] => ) -- Edit bug report at http://bugs.php.net/?id=35779&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35779&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35779&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35779&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35779&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35779&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35779&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35779&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35779&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35779&r=support Expected behavior: http://bugs.php.net/fix.php?id=35779&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35779&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35779&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35779&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35779&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35779&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35779&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35779&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35779&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35779&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35779&r=mysqlcfg