File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / compare_objects_basic2.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:14 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
Test object compare when object handler different 
--FILE--

<?php 

//Set the default time zone 
date_default_timezone_set("Europe/London");

echo "Simple test comparing two objects with different compare callback handler\n";

class X {
}

$obj1 = new X();
$obj2 = new DateTime(("2009-02-12 12:47:41 GMT"));

var_dump($obj1 == $obj2);
?>
===DONE===
--EXPECTF--
Simple test comparing two objects with different compare callback handler
bool(false)
===DONE===

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