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 (11 years 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

    1: --TEST--
    2: Test object compare when object handler different 
    3: --FILE--
    4: 
    5: <?php 
    6: 
    7: //Set the default time zone 
    8: date_default_timezone_set("Europe/London");
    9: 
   10: echo "Simple test comparing two objects with different compare callback handler\n";
   11: 
   12: class X {
   13: }
   14: 
   15: $obj1 = new X();
   16: $obj2 = new DateTime(("2009-02-12 12:47:41 GMT"));
   17: 
   18: var_dump($obj1 == $obj2);
   19: ?>
   20: ===DONE===
   21: --EXPECTF--
   22: Simple test comparing two objects with different compare callback handler
   23: bool(false)
   24: ===DONE===

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