|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-15 12:50 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ It's a bag like 28840, but with class ffi. 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