|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-18 16:25 UTC] mike@php.net
-Status: Assigned
+Status: Closed
[2010-05-18 16:25 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
Description: ------------ ArrayObject descendants can be forced to serialize public/protected/private properies using __sleep(), but it produces E_NOTICE Reproduce code: --------------- class Test extends ArrayObject { public $var = 123; public function __sleep() { return array('var'); } } $test = new Test; $s = serialize($test); Expected result: ---------------- none Actual result: -------------- Notice: serialize() [function.serialize]: "var" returned as member variable from __sleep() but does not exist