summaryrefslogtreecommitdiff
path: root/tests/lang/compare_objects_basic2.phpt
blob: 7e4786cd289b57494bad0b7085b0be51bbb07cce (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
--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===