|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56897 Invalid object serialization
Submitted: 2006-03-17 17:04 UTC Modified: 2006-03-17 23:18 UTC
From: stochnagara at hotmail dot com Assigned: omar (profile)
Status: Closed Package: json (PECL)
PHP Version: 5_1 CVS-2006-03-17 OS: windows xp
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.
Block user comment
Status: Assign to:
Bug Type:
From: stochnagara at hotmail dot com
New email:
PHP Version: OS:


 [2006-03-17 17:04 UTC] stochnagara at hotmail dot com
A class with a private and/or protected members is serialized incorrectly.

Reproduce code:
class q {
	private $a;
	protected $b;
	public $c;
echo json_encode(new q);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-17 23:18 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 02:05:53 2022 UTC