Skip to content

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

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jul 17, 2023

I don't remember when I did this as I've been going through some old branches, maybe this is useful?

Copy link
Member

@nielsdos nielsdos left a 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();
Copy link
Member

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.

@nielsdos
Copy link
Member

I do think this test should be moved to ext/dom though.

@Girgias
Copy link
Member Author

Girgias commented Jul 18, 2023

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.

@nielsdos
Copy link
Member

Ah yes that's fair, fine by me then!

@Girgias
Copy link
Member Author

Girgias commented Jul 18, 2023

@iluuu1994 what generated file is it complaining about? I can't figure it out >_>

@nielsdos
Copy link
Member

It's db.dba

…eing loaded

A stream resource is expected to be returned by the handler.
@Girgias
Copy link
Member Author

Girgias commented Jul 19, 2023

Right... I forgot a --CLEAN-- section. Hopefully this is now fixed.

@nielsdos
Copy link
Member

Yeah it looks OK now, thx

@Girgias Girgias merged commit a17e84f into php:master Jul 21, 2023
@Girgias Girgias deleted the libxml-nits branch July 21, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants