Annotation of embedaddon/php/tests/classes/destructor_visibility_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ZE2 Ensuring destructor visibility
! 3: --SKIPIF--
! 4: <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: class Base {
! 9: private function __destruct() {
! 10: echo __METHOD__ . "\n";
! 11: }
! 12: }
! 13:
! 14: class Derived extends Base {
! 15: }
! 16:
! 17: $obj = new Derived;
! 18:
! 19: ?>
! 20: ===DONE===
! 21: --EXPECTF--
! 22: ===DONE===
! 23:
! 24: Warning: Call to private Derived::__destruct() from context '' during shutdown ignored in Unknown on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>