summaryrefslogtreecommitdiff
path: root/Zend/tests/bug62763.phpt
blob: 50c27bdf35e5e9cb53cf76c13843189ec5638195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #62763 (register_shutdown_function and extending class)
--FILE--
<?php
class test1 {
    public function __construct() {
        register_shutdown_function(array($this, 'shutdown')); 
    }
    public function shutdown() { 
        exit(__METHOD__);
    }
}

class test2 extends test1 {
    public function __destruct() { 
       exit (__METHOD__); 
    }
}
new test1;
new test2;
?>
--EXPECT--
test1::shutdowntest2::__destruct