Re: [PHP-DEV] Is reference counting necessary for a PHP implementation?

2017-09-27 Thread Sidharth Kshatriya
The incrementing of the counter is the easy part. In ref counting, while decrementing the counter for a non-scalar (objects, arrays, etc), if the counter reaches zero we need to follow all the non-scalars referenced by the non-scalar you just made zero (and decrement them too. Also, if any of them

[PHP-DEV] Is reference counting necessary for a PHP implementation?

2017-09-27 Thread Sidharth Kshatriya
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

[PHP-DEV] [Announcement] Dontbug: A reversible debugger for PHP

2016-10-10 Thread Sidharth Kshatriya
Dear All, I'd like to announce the public release of "Dontbug"*.* Dontbug is a reversible debugger for PHP. I don't think anything like this exists for PHP. Dontbug allows you to run PHP scripts forwards and backwards in the debugger. Practically speaking, you can step over/out backwards, step b