Skip to content

QA - pcntl_exec - check stringable parameters error #8990

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 2 commits into from
Jul 13, 2022

Conversation

juan-morales
Copy link
Contributor

Moving forward on this trip to add more coverage to our code now this change is presented.

Extension: pcntl
Function: pcntl_exec

If non-stringable arguments are passed to $args or $env_vars then exception is thrown (Fatal Error).

Instead to let the error explote, I catched them, also to test that the kind of error generated can be catch.

I attach the coverage gained.

Before
image

After
image

@juan-morales
Copy link
Contributor Author

How to proceed in this cases?

Another test is failing (not mine):

image

Copy link
Member

@cmb69 cmb69 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! This looks good to me (besides the small nit). The test failure is likely unrelated, but I've just triggered CI to run again.

@cmb69 cmb69 merged commit 492f9c6 into php:master Jul 13, 2022
@cmb69
Copy link
Member

cmb69 commented Jul 13, 2022

Thank you!

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