Hi there,

Sidharth Kshatriya wrote:
In:

https://github.com/php/php-langspec/blob/master/spec/04-basic-concepts.md#reclamation-and-automatic-memory-management

Despite the use of the term refcount, conforming implementations are not
required to use a reference counting-based implementation for automatic
memory management.

Is this statement correct? If I understand correctly many PHP projects
depend on the deterministic firing of `__destruct()` function to cleanup
SQL transactions or connections and so forth.

It's __destruct() that is the problem, yes. If “running PHP code that relies on deterministic __destruct()” is what you mean by “a PHP implementation”, then yes, it's necessary. If not, then no. :)
--
Andrea Faulds
https://ajf.me/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to