Files
kulakpos_web/vendor/thecodingmachine/safe/generated/8.1/shmop.php

39 lines
713 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Safe;
use Safe\Exceptions\ShmopException;
/**
2026-04-18 20:32:18 +07:00
* @param \Shmop $shmop
2026-03-30 14:54:57 +07:00
* @throws ShmopException
*
*/
function shmop_delete(\Shmop $shmop): void
{
error_clear_last();
$safeResult = \shmop_delete($shmop);
if ($safeResult === false) {
throw ShmopException::createFromPhpError();
}
}
/**
2026-04-18 20:32:18 +07:00
* @param \Shmop $shmop
* @param int $offset
* @param int $size
* @return string
2026-03-30 14:54:57 +07:00
* @throws ShmopException
*
*/
function shmop_read(\Shmop $shmop, int $offset, int $size): string
{
error_clear_last();
$safeResult = \shmop_read($shmop, $offset, $size);
if ($safeResult === false) {
throw ShmopException::createFromPhpError();
}
return $safeResult;
}