Req #10863 [Opn->Bgs]: serialize/unserialize doesn't handle references
| From: | jani@php.net | Date: | Fri, 31 Dec 2010 19:33:26 +0000 |
| Subject: | Req #10863 [Opn->Bgs]: serialize/unserialize doesn't handle references | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157415@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=10863&edit=1
ID: 10863
Updated by: jani@php.net
Reported by: tom dot hurst at clara dot net
Summary: serialize/unserialize doesn't handle references
-Status: Open
+Status: Bogus
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Debian 2.3
PHP Version: 4.0 Latest CVS (2001-05-14)
Block user comment: N
Private report: N
New Comment:
Too much magic plus impossible. If you have references to external
variables, where would the information on those come from when you
unserialize the data?
Previous Comments:
------------------------------------------------------------------------
[2001-05-14 18:51:55] tom dot hurst at clara dot net
In parsing a template in my template class I use references to strings
inside the same array to improve performance.
It would be nice to be able to serialize this and cache the parsetree to
save reparsing. I can think of cases where restoring references to
external variables would be handy too.
If not, maybe this should be documented? Or a warning raised at (say)
level E_NOTICE if the object couldn't be fully serialized?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=10863&edit=1