Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Conversation

@galvao
Copy link
Contributor

@galvao galvao commented Oct 31, 2017

Adding a test case for pcntl_setpriority basic behaviour assuming the user has superuser permission

Copy link
Contributor

@krakjoe krakjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't have tests that assume supercow powers by default ...

I'm not sure about this, but maybe you could find a way to skipif ... maybe dig about in other tests to see if any other test is doing the same sort of thing ...

Additionally, this function may not always be available when pcntl is loaded, requires skipif on function exists ...

@galvao
Copy link
Contributor Author

galvao commented Oct 31, 2017

@krakjoe Skipif for function_exists is there.
About the superuser issue I see what you mean, I'm going to do some digging to see what I can find.

@galvao
Copy link
Contributor Author

galvao commented Nov 13, 2017

Fixed. Testing for $_SERVER['SUDO_USER'] was the best solution I could find.

Copy link
Contributor

@carusogabriel carusogabriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petk petk self-assigned this Feb 9, 2019
@petk
Copy link
Contributor

petk commented Feb 10, 2019

Applied via php/php-src@eadfdb9 to the php-src repository master and PHP-7.4 branches. Thank you @galvao for the pull request 🎉

@petk petk closed this Feb 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants