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

Fixes #311 PHP fatal error #314

Merged
merged 1 commit into from
Apr 9, 2014
Merged

Fixes #311 PHP fatal error #314

merged 1 commit into from
Apr 9, 2014

Conversation

realityking
Copy link
Contributor

Original Issue: #311

Due to a memory handling issue in PHP core Mocks might cause PHP to error out when called in a destructor.

The workaround works because it causes ReflectionClass to create a new class entry and not reuse the one from the existing object. Alternatively ReflectionClass could be replaced with ReflectionObject.

Relevant part of the code: http://lxr.php.net/xref/PHP_5_5/ext/reflection/php_reflection.c#3313

Any chance to get this in a tagged release quickly? It kinda gets in the way of my SwiftMailer work ;)

…se PHP to error out when called in a destructor.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b36a868 on realityking:master into * on padraic:master*.

davedevelopment added a commit that referenced this pull request Apr 9, 2014
@davedevelopment davedevelopment merged commit 4eff32b into mockery:master Apr 9, 2014
@davedevelopment
Copy link
Collaborator

@realityking I'll try and get a 0.9.1 release out tomorrow, but I'm a bit pushed for time.

@realityking
Copy link
Contributor Author

Thank you. It's not that urgent, but sometime this month would be awesome.

@realityking
Copy link
Contributor Author

Any news about a 0.9.1? The SwiftMailer pull request has since been merged, so currently it requires a dev version which isn't too nice.

@davedevelopment
Copy link
Collaborator

@realityking Sorry, see #327

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

Successfully merging this pull request may close these issues.

None yet

3 participants