1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 02:52:48 +02:00
Files
archived-php-src/ext/shmop/shmop.stub.php
Christoph M. Becker 18f58080dc Convert shmop resources to opaque objects
We make `shmop_close()` a NOP, and deprecate the function right away;
detaching from SHM now happens when the wrapper object is freed.
2020-06-24 13:59:29 +02:00

19 lines
453 B
PHP

<?php
/** @generate-function-entries */
final class Shmop {}
function shmop_open(int $key, string $flags, int $mode, int $size): Shmop|false {}
function shmop_read(Shmop $shmid, int $start, int $count): string|false {}
/** @deprecated */
function shmop_close(Shmop $shmid): void {}
function shmop_size(Shmop $shmid): int {}
function shmop_write(Shmop $shmid, string $data, int $offset): int|false {}
function shmop_delete(Shmop $shmid): bool {}