File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug66286.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:04:04 2014 UTC (10 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

--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)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>