php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10863 serialize/unserialize doesn't handle references
Submitted: 2001-05-14 18:51 UTC Modified: 2010-12-31 20:33 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: tom dot hurst at clara dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0 Latest CVS (2001-05-14) OS: Debian 2.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tom dot hurst at clara dot net
New email:
PHP Version: OS:

 

 [2001-05-14 18:51 UTC] 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-31 20:33 UTC] jani@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-31 20:33 UTC] jani@php.net
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?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 22:01:27 2024 UTC