Req #45690 [Com]: json_encode to support Serializable and __sleep
| From: | ya at helldude dot ru | Date: | Thu, 17 May 2012 20:31:11 +0000 |
| Subject: | Req #45690 [Com]: json_encode to support Serializable and __sleep | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170542@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=45690&edit=1
ID: 45690
Comment by: ya at helldude dot ru
Reported by: j dot stutterheim at hccnet dot nl
Summary: json_encode to support Serializable and __sleep
Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: OS X 10.5.4
PHP Version: 5.2.6
Assigned To: johannes
Block user comment: N
Private report: N
New Comment:
perfect idea! php require it functional.
Previous Comments:
------------------------------------------------------------------------
[2010-12-22 13:51:43] johannes@php.net
Trunk has support for this via the JsonSerializable interface.
------------------------------------------------------------------------
[2008-08-02 17:35:21] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=45690&edit=1