php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45690 json_encode to support Serializable and __sleep
Submitted: 2008-08-02 17:35 UTC Modified: 2010-12-22 13:51 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: j dot stutterheim at hccnet dot nl Assigned: johannes (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.6 OS: OS X 10.5.4
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j dot stutterheim at hccnet dot nl
New email:
PHP Version: OS:

 

 [2008-08-02 17:35 UTC] j dot stutterheim at hccnet dot nl
Description:
------------
In order to easily serialize objects, without resorting to public 
attributes, it would be nice if json_encode() would support Serializable 
and __sleep. It currently does not take these into account.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 13:51 UTC] johannes@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: johannes
 [2010-12-22 13:51 UTC] johannes@php.net
Trunk has support for this via the JsonSerializable interface.
 [2012-05-17 20:31 UTC] ya at helldude dot ru
perfect idea! php require it functional.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 05:01:31 2024 UTC