Skip to content

Added support for setting a group for SysV Shared Memory #354

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

Closed
wants to merge 3 commits into from
Closed

Added support for setting a group for SysV Shared Memory #354

wants to merge 3 commits into from

Conversation

hackman
Copy link

@hackman hackman commented Jun 3, 2013

I have added support for setting a valid group when attaching to the shared memory.

This allows you to create SHM and share it with users in a group which is not your default GID.

This is something that is missing in PHP since the addition of SysV SHM.

@lstrojny
Copy link
Contributor

lstrojny commented Jun 3, 2013

Looks like a good idea but we need more tests

@hackman
Copy link
Author

hackman commented Jun 3, 2013

What tests would you like?

@lstrojny
Copy link
Contributor

lstrojny commented Jun 3, 2013

It looks like shm_detach() isn’t particularly well covered.

@hackman
Copy link
Author

hackman commented Jun 4, 2013

So, what is needed are more tests to shm_detach() ?
If this is the only thing, I can add them today.

@hackman
Copy link
Author

hackman commented Jun 9, 2013

Any updates on this? What more is needed from me? I would like to add what is needed so we can proceed with the pull.

@smalyshev
Copy link
Contributor

@hackman Some tests covering the functionality you've added in the patch would be great.

@smalyshev
Copy link
Contributor

@hackman Any news?

@hackman
Copy link
Author

hackman commented Sep 6, 2013

Sorry, I didn't had time to check what type of tests I have to create and also I'm not sure that I understand the test framework very well. It will take me some time to read it all.

@@ -58,6 +60,13 @@
sysvshm_chunk_head *ptr; /* memory address of shared memory */
} sysvshm_shm;

typedef struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? It's already defined in grp.h

@php-pulls
Copy link

Comment on behalf of krakjoe at php.net:

Since this PR does not have satisfactory test coverage, and since it has merge conflicts, and since it seems to have been abandoned by author, I'm closing the PR.

If anyone is watching and thinks this needs to be merged, please open a clean PR, with good test coverage, and ensure tests are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants