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

Refactor ZendHashTable and Zval #76

Merged
merged 6 commits into from
Sep 21, 2021
Merged

Refactor ZendHashTable and Zval #76

merged 6 commits into from
Sep 21, 2021

Conversation

davidcole1340
Copy link
Owner

  • ZendHashTable has been split into &HashTable and OwnedHashTable. &HashTable is to OwnedHashTable as &str is to String.
  • The Drop implementation on Zval will properly drop the contents of the zval.

The functions actually returned references to the new zval value, so
there's not much point in returning.
Replaced by returning references to the actual hashtable, and having a
new type `OwnedHashTable` when creating a new hashtable.
Copy link
Collaborator

@vodik vodik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks reasonable to me. Just a few thoughts.

src/php/types/array.rs Outdated Show resolved Hide resolved
src/php/types/array.rs Outdated Show resolved Hide resolved
src/php/types/array.rs Show resolved Hide resolved
@davidcole1340 davidcole1340 merged commit 7c484a0 into master Sep 21, 2021
@davidcole1340 davidcole1340 deleted the zval-experiments branch September 27, 2021 11:54
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.

2 participants