|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-15 07:09 UTC] pierre dot php at gmail dot com
[2005-11-15 07:14 UTC] tony2001 at phpclub dot net
[2013-12-13 07:52 UTC] wez@php.net
-Status: Assigned
+Status: Open
-Assigned To: wez
+Assigned To:
[2017-04-01 20:08 UTC] tpunt@php.net
-Status: Open
+Status: Wont fix
[2017-04-01 20:08 UTC] tpunt@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
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