Bug #5967 [NEW]: __destruct of a class that extends ffi not called

From: Date: Tue, 15 Nov 2005 11:58:01 +0000
Subject: Bug #5967 [NEW]: __destruct of a class that extends ffi not called
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4614@lists.php.net to get a copy of this message
From: ken at nightmail dot ru Operating system: windows xp sp2 PHP version: Irrelevant Package: Bug System Bug Type: Bug Bug description: __destruct of a class that extends ffi not called Description: ------------ Used PHP v5.0.5 When you create a class by extending ffi and add a destructor to it, it doesn't get called when the object gets out of scope. Reproduce code: --------------- <? class test extends ffi { function __construct( $param ){ parent::__construct($param); echo "born\n"; } function __destruct() { parent::__destruct(); echo "died\n"; } } $test = new test; unset($test); ?> Expected result: ---------------- born died Actual result: -------------- born -- Edit bug report at http://pecl.php.net/bugs/bug.php?id=5967&edit=1 --

« previous php.pear.webmaster (#4614) next »