colder / php-weakref

PECL extension that implements weak references and weak maps in PHP
http://pecl.php.net/weakref
Other
36 stars 13 forks source link

__destruct #1

Closed vituko closed 12 years ago

vituko commented 12 years ago

PHP5.3.2 and Weakref 0.1.0 (beta)

  1. Not documented as a final class.
  2. Trying to free (unset) the Weakref object inside the __destructor of the main object (the weakly referenced one)... causes SegFault.
colder commented 12 years ago

Hi,

thanks for the report, it should be fixed in master.

vituko commented 12 years ago

Thanks, I hope this feature will become part of the php core one day. Its very annoying to manually track and free references.

It works now, just one thing, the package.xml must be updated, because the file names in "<contents/>" have changed. And well, it could be interesting to update the current pecl version and the php site documentation too. Weakmap is not present and is a very good resource too.

Thanks again

colder commented 12 years ago

I just released the current version as V0.2.0 on pecl.

Documentation on weakmaps will come shortly