1--TEST--
2Bug #79526 (`__sleep` error message doesn't include the name of the class)
3--FILE--
4<?php
5class A
6{
7    public function __sleep() {
8        return 1;
9    }
10}
11
12
13serialize(new A());
14
15class B
16{
17    public function __sleep() {
18        return [1];
19    }
20}
21
22
23serialize(new B());
24?>
25Done
26--EXPECTF--
27Warning: serialize(): A::__sleep() should return an array only containing the names of instance-variables to serialize in %s on line %d
28
29Warning: serialize(): B::__sleep() should return an array only containing the names of instance-variables to serialize in %s on line %d
30
31Warning: serialize(): "1" returned as member variable from __sleep() but does not exist in %s on line %d
32Done
33