#44004 [NEW]: Information on how Objects with non-public properties are serialized is missing

From: Date: Thu, 31 Jan 2008 18:47:17 +0000
Subject: #44004 [NEW]: Information on how Objects with non-public properties are serialized is missing
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-490@lists.php.net to get a copy of this message
From: mfischer@php.net Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Information on how Objects with non-public properties are serialized is missing Description: ------------ The documentation lacks the information that objects with non-public properties uses a special syntax to associate that information with a property. For protected properties, the property name is prefixed with \000, an asterisk, and \000 again. For private properties, the property name is prefix with \000, the follows the class the property is defined in, then \000 again. It's an important factor to keep in mind when transporting the serialized format, null-bytes or probably not easily expected in such a case. The documentation should probably be reflected on php.net/manual/en/language.oop.serialization.php. I think it wouldn't heard if the link to object serialization one php.net/serialize could be made a bit more prominent. -- Edit bug report at http://bugs.php.net/?id=44004&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44004&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44004&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44004&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44004&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44004&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44004&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44004&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44004&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44004&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44004&r=support Expected behavior: http://bugs.php.net/fix.php?id=44004&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44004&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44004&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44004&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44004&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44004&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44004&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44004&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44004&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44004&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44004&r=mysqlcfg

« previous php.doc.bugs (#490) next »