From: aymeric dot jouno at free dot fr Operating system: XP PHP version: 5.2.5 PHP Bug Type: Class/Object related Bug description: Serialize an Object with Private vars in txt file
Description: ------------ There is a mismatch/bug under PHP 5.2.5( id don't try it in other version) CONTEXT : Serialize an Object with Private vars in a text file using fopen no binary and fwrite. RESULT : serialize Object is forced to bad binary mode in file. if you change private vars to public vars it work !... SOLUTION : 1 but poor => encode_base_64(Serialized Objet) 2 good => use fopen in binary mode -- Edit bug report at http://bugs.php.net/?id=44806&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44806&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44806&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44806&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44806&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44806&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44806&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44806&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44806&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44806&r=support Expected behavior: http://bugs.php.net/fix.php?id=44806&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44806&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44806&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44806&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44806&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44806&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44806&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44806&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44806&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44806&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44806&r=mysqlcfg