-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/libxml: Add test to attempt to trigger a specific code path #11728
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good modulo that one comment.
|
||
class Handler { | ||
public function handle($public, $system, $context) { | ||
return dba_open('db.dba', 'n');//throw new Exception(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment at the end should be removed probably.
I do think this test should be moved to ext/dom though. |
Other tests in this folder deal with this function and require the DOM extension so I'm kinda reluctant to move this to ext/dom. |
Ah yes that's fair, fine by me then! |
@iluuu1994 what generated file is it complaining about? I can't figure it out >_> |
It's |
…eing loaded A stream resource is expected to be returned by the handler.
Right... I forgot a |
Yeah it looks OK now, thx |
I don't remember when I did this as I've been going through some old branches, maybe this is useful?