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

Add some standard zend interfaces #164

Merged

Conversation

nikeee
Copy link
Contributor

@nikeee nikeee commented Oct 15, 2022

The zend API also has some standard interfaces it exposes:

https://github.com/php/php-src/blob/c8c09b4aaee7ac447828564c6267e62eb304135b/Zend/zend_interfaces.h#L27-L33

extern ZEND_API zend_class_entry *zend_ce_traversable;
extern ZEND_API zend_class_entry *zend_ce_aggregate;
extern ZEND_API zend_class_entry *zend_ce_iterator;
extern ZEND_API zend_class_entry *zend_ce_arrayaccess;
extern ZEND_API zend_class_entry *zend_ce_serializable;
extern ZEND_API zend_class_entry *zend_ce_countable;
extern ZEND_API zend_class_entry *zend_ce_stringable;

This surfaced in #163 and should make it possible to implement these interfaces.

Note: Im relatively new to rust.. If I've got something wrong, just drop a line and I'd be happy to address the issue. :)

nikeee and others added 3 commits October 16, 2022 13:03
The zend API also has some standard interfaces it exposes:
https://github.com/php/php-src/blob/c8c09b4aaee7ac447828564c6267e62eb304135b/Zend/zend_interfaces.h#L27-L33
```
extern ZEND_API zend_class_entry *zend_ce_traversable;
extern ZEND_API zend_class_entry *zend_ce_aggregate;
extern ZEND_API zend_class_entry *zend_ce_iterator;
extern ZEND_API zend_class_entry *zend_ce_arrayaccess;
extern ZEND_API zend_class_entry *zend_ce_serializable;
extern ZEND_API zend_class_entry *zend_ce_countable;
extern ZEND_API zend_class_entry *zend_ce_stringable;
```

This surfaced in davidcole1340#163 and should make it possible to implement these interfaces.
@davidcole1340 davidcole1340 force-pushed the feature/standard-interfaces branch from a83415e to 530af2c Compare October 16, 2022 00:04
Copy link
Owner

@davidcole1340 davidcole1340 left a comment

Choose a reason for hiding this comment

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

thank you! when updating allowed_bindings.rs the docsrs_bindings.rs file needs to be re-generated, but I need to document this somewhere. have done it for you.

@davidcole1340 davidcole1340 merged commit 24d703d into davidcole1340:master Oct 16, 2022
@nikeee nikeee deleted the feature/standard-interfaces branch October 16, 2022 16:25
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