1--TEST--
2Test standard 'compare' object handler
3--FILE--
4<?php
5
6echo "Simple test for standard compare object handler\n";
7
8class class1{}
9
10class class2{}
11
12class class3{
13	public $aaa;
14	private $bbb;
15	protected $ccc;
16}
17
18class class4 extends class3{
19}
20
21class class5 extends class3{
22	public $ddd;
23	private $eee;
24}
25
26// Define a bunch of objects all of which will use standard compare object handler
27$obj1 = new class1();
28$obj2 = new class2();
29$obj3 = new class3();
30$obj4 = new class4();
31$obj5 = new class5();
32
33echo "\n-- The following compare should return TRUE --\n";
34var_dump($obj1 == $obj1);
35
36echo "\n-- All the following compares should return FALSE --\n";
37var_dump($obj1 == $obj2);
38var_dump($obj1 == $obj3);
39var_dump($obj1 == $obj4);
40var_dump($obj1 == $obj5);
41var_dump($obj4 == $obj3);
42var_dump($obj5 == $obj3);
43
44?>
45===DONE===
46--EXPECT--
47Simple test for standard compare object handler
48
49-- The following compare should return TRUE --
50bool(true)
51
52-- All the following compares should return FALSE --
53bool(false)
54bool(false)
55bool(false)
56bool(false)
57bool(false)
58bool(false)
59===DONE===
60