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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 02:01:28 2024 UTC