Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__destruct #1

Closed
vituko opened this issue Mar 28, 2012 · 3 comments
Closed

__destruct #1

vituko opened this issue Mar 28, 2012 · 3 comments

Comments

@vituko
Copy link

vituko commented Mar 28, 2012

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
Copy link
Owner

colder commented Mar 28, 2012

Hi,

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

@colder colder closed this as completed Mar 28, 2012
@vituko
Copy link
Author

vituko commented Mar 28, 2012

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
Copy link
Owner

colder commented Mar 29, 2012

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

Documentation on weakmaps will come shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants