summaryrefslogtreecommitdiff
path: root/Zend/tests/bug66286.phpt
blob: 457e282402beb77672930254c3c8400fc43b3cb3 (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)