From: Magnus M��tt� Date: Thu, 15 Jul 2004 11:52:04 +0000 (+0000) Subject: Test for bug 26737: X-Git-Tag: php-5.0.0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfc8accd3ed81fdb038cf6498b3967719fda0f39;p=php Test for bug 26737: Protected and private variables are not saved on serialization when a user defined __sleep is used. --- diff --git a/tests/classes/bug26737.phpt b/tests/classes/bug26737.phpt new file mode 100644 index 0000000000..de37eaffbc --- /dev/null +++ b/tests/classes/bug26737.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #26737 (Protected and private variables are not saved on serialization when a user defined __sleep is used) +--FILE-- + +--EXPECT-- +string(114) "O:3:"foo":3:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected";s:6:"public";s:6:"public";}"