We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Extension code:
#[php_function] pub fn test_instance_of(a: &ZendObject, b: &ZendObject) -> bool { get_class_entry(a).instance_of(get_class_entry(b)) } fn get_class_entry<'a>(obj: &'a ZendObject) -> &'static ClassEntry { unsafe { obj.ce.as_ref().unwrap() } }
<?php class Base {} class Child extends Base {} class GrandChild extends Child {} var_dump(test_instance_of(new GrandChild, new Base));
Expected behaviour: prints bool(true)
bool(true)
Actual behaviour: loops forever
The text was updated successfully, but these errors were encountered:
fixes inifinte loop in ClassEntry::instance_of
269e668
Closes davidcole1340#187
e480f4e
Successfully merging a pull request may close this issue.
Extension code:
Expected behaviour: prints
bool(true)
Actual behaviour: loops forever
The text was updated successfully, but these errors were encountered: