Declare a PHP class with an abstract method at Rust level
Extend this class at PHP level to override the abstract method
Trying to construct an object which derives the abstract class results in a panic here.
The current implementation seems like it only tries to lookup the state constructor from the current Zend class entry. I assume subclassing an abstract class exposed by Rust should either set the state constructor for derived classes properly or the current implementation of create_object() should scan the entire inheritance tree until it finds the proper state constructor.
Please let me know if you need further information to reproduce the issue. Thank you in advance!
Example:
Trying to construct an object which derives the abstract class results in a panic here. The current implementation seems like it only tries to lookup the state constructor from the current Zend class entry. I assume subclassing an abstract class exposed by Rust should either set the state constructor for derived classes properly or the current implementation of
create_object()
should scan the entire inheritance tree until it finds the proper state constructor.Please let me know if you need further information to reproduce the issue. Thank you in advance!