|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits              [2021-06-18 05:14 UTC] krakjoe@php.net
  [2021-06-18 09:23 UTC] git@php.net
  [2021-06-18 09:23 UTC] git@php.net
 
-Status: Open
+Status: Closed
  [2021-06-18 17:12 UTC] git@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
Description: ------------ indirect vars returned in properties for __sleep not handled correctly Test script: --------------- <?php class foo { private $private = 'private'; } class bar extends foo { public function __sleep() { return (new bar()); } } var_dump(serialize(new bar())); ?> Expected result: ---------------- Warning: serialize(): "private" returned as member variable from __sleep() but does not exist in /opt/src/php-src/sec.php on line 15 string(14) "O:3:"bar":0:{}" Actual result: -------------- assert fail