1--TEST-- 2__sleep() returns properties clashing only after mangling 3--FILE-- 4<?php 5class Test { 6 private $priv; 7 public function __sleep() { 8 return ["\0Test\0priv", "priv"]; 9 } 10} 11$s = serialize(new Test); 12var_dump(str_replace("\0", '\0', $s)); 13?> 14--EXPECTF-- 15Notice: serialize(): "priv" is returned from __sleep() multiple times in %s on line %d 16string(37) "O:4:"Test":1:{s:10:"\0Test\0priv";N;}" 17