File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug62763.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 8 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

    1: --TEST--
    2: Bug #62763 (register_shutdown_function and extending class)
    3: --FILE--
    4: <?php
    5: class test1 {
    6:     public function __construct() {
    7:         register_shutdown_function(array($this, 'shutdown')); 
    8:     }
    9:     public function shutdown() { 
   10:         exit(__METHOD__);
   11:     }
   12: }
   13: 
   14: class test2 extends test1 {
   15:     public function __destruct() { 
   16:        exit (__METHOD__); 
   17:     }
   18: }
   19: new test1;
   20: new test2;
   21: ?>
   22: --EXPECT--
   23: test1::shutdowntest2::__destruct

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