-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Convert shmop resources to opaque objects #5537
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,17 @@ | |
|
||
/** @generate-function-entries */ | ||
|
||
/** @return resource|false */ | ||
function shmop_open(int $key, string $flags, int $mode, int $size) {} | ||
final class Shmop {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about using a class name like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not against a more descriptive name, but |
||
|
||
/** @param resource $shmid */ | ||
function shmop_read($shmid, int $start, int $count): string|false {} | ||
function shmop_open(int $key, string $flags, int $mode, int $size): Shmop|false {} | ||
|
||
/** @param resource $shmid */ | ||
function shmop_close($shmid): void {} | ||
function shmop_read(Shmop $shmid, int $start, int $count): string|false {} | ||
|
||
/** @param resource $shmid */ | ||
function shmop_size($shmid): int {} | ||
/** @deprecated */ | ||
function shmop_close(Shmop $shmid): void {} | ||
|
||
/** @param resource $shmid */ | ||
function shmop_write($shmid, string $data, int $offset): int|false {} | ||
function shmop_size(Shmop $shmid): int {} | ||
|
||
/** @param resource $shmid */ | ||
function shmop_delete($shmid): bool {} | ||
function shmop_write(Shmop $shmid, string $data, int $offset): int|false {} | ||
|
||
function shmop_delete(Shmop $shmid): bool {} |
Uh oh!
There was an error while loading. Please reload this page.