Req #45690 [Opn->Csd]: json_encode to support Serializable and __sleep

From: Date: Wed, 22 Dec 2010 12:51:43 +0000
Subject: Req #45690 [Opn->Csd]: json_encode to support Serializable and __sleep
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157237@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=45690&edit=1 ID: 45690 Updated by: johannes@php.net Reported by: j dot stutterheim at hccnet dot nl Summary: json_encode to support Serializable and __sleep -Status: Open +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: OS X 10.5.4 PHP Version: 5.2.6 -Assigned To: +Assigned To: johannes Block user comment: N Private report: N New Comment: Trunk has support for this via the JsonSerializable interface. Previous Comments: ------------------------------------------------------------------------ [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 http://bugs.php.net/bug.php?id=45690&edit=1

« previous php.bugs (#157237) next »