1--TEST--
2Bug #35895 (__sleep and private property)
3--FILE--
4<?php
5class Parents {
6   private $parents;
7   public function __sleep() {
8       return array("parents");
9   }
10}
11
12class Child extends Parents {
13    private $child;
14    public function __sleep() {
15        return array_merge(array("child"), parent::__sleep());
16    }
17}
18
19$obj = new Child();
20serialize($obj);
21
22?>
23--EXPECTF--
24Warning: serialize(): "parents" returned as member variable from __sleep() but does not exist in %s on line %d
25