summaryrefslogtreecommitdiff
path: root/Zend/tests/bug66286.phpt
blob: d5b9bd7161a0255cc85e6e388eb53bd7d7cedaa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Bug #66286: Incorrect object comparison with inheritance
--FILE--
<?php

abstract class first {
    protected $someArray = array();
}

class second extends first {
    protected $someArray = array();
    protected $someValue = null;

    public function __construct($someValue) {
        $this->someValue = $someValue;
    }
}

$objFirst = new second('123');
$objSecond = new second('321');

var_dump ($objFirst == $objSecond);

?>
--EXPECT--
bool(false)