Ask a Question related to PHP Bugs, Design and Development.
-
t dot prochazka at centrum dot cz #1
#39635 [NEW]: Better control for serialization (keyword for permit property serialization)
From: t dot prochazka at centrum dot cz
Operating system: all
PHP version: 5CVS-2006-11-26 (CVS)
PHP Bug Type: Feature/Change Request
Bug description: Better control for serialization (keyword for permit property serialization)
Description:
------------
PHP has no advanced support for serialization.
I think, that is problem, that PHP serialize all properties. What about
add single keyword (as transient) for property which can't be
serializable?
Example:
class Foo {
public $a;
public transient $b;
}
Description of Java transient keyword:
[url]http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#78119[/url]
--
Edit bug report at [url]http://bugs.php.net/?id=39635&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39635&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39635&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39635&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39635&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=39635&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=39635&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39635&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=39635&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=39635&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=39635&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=39635&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=39635&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=39635&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39635&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=39635&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=39635&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39635&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=39635&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39635&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39635&r=mysqlcfg[/url]
t dot prochazka at centrum dot cz Guest
-
Custom control code serialization to class file
I have a custom control that includes a custom collection. In the collection editor, I add a new item to the collection and that item gets... -
server control serialization problem with UiTypeEditor
Have a expandable property that is passed to a uitypeeditor which the property does not get serialized. Value from uitypeeditor updates in the... -
Serialization of an inherited property.
Hopefully this is the right group. I am getting the following exeption: Member 'PPRP602AType.RPLY_HEADER' hides inherited member... -
serialization problem - eventhandling by control
Hi folks! I am developing a custom TreeView and I have got a problem with the serialization of my TreeViewModel: public class... -
avoiding XML serialization, different WSDL generation, soap serialization
Hello, I think my problem is interesting for most of developers who wish to exchange actual business entities with webservices, not just xml... -
spam at thishell dot com #2
#39635 [Com]: Better control for serialization (keyword for permit property serialization)
ID: 39635
Comment by: spam at thishell dot com
Reported By: t dot prochazka at centrum dot cz
Status: Open
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5CVS-2006-11-26 (CVS)
New Comment:
While it is possible to exclude members from serialization using
__sleep(), it has downsides:
- Using get_object_vars($this) to return the members is extremely slow
- Manually maintaining an array with the members is error prone and can
be quite some work
A transient keyword to exclude members from serialization would make it
easier ...
Previous Comments:
------------------------------------------------------------------------
[2006-11-26 11:40:40] t dot prochazka at centrum dot cz
Description:
------------
PHP has no advanced support for serialization.
I think, that is problem, that PHP serialize all properties. What about
add single keyword (as transient) for property which can't be
serializable?
Example:
class Foo {
public $a;
public transient $b;
}
Description of Java transient keyword:
[url]http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#78119[/url]
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=39635&edit=1[/url]
spam at thishell dot com Guest



Reply With Quote

