Server IP : 172.67.216.182 / Your IP : 172.70.188.63 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lapma.in/phpMyAdmin/vendor/thecodingmachine/safe/generated/ |
Upload File : |
<?php namespace Safe; use Safe\Exceptions\ShmopException; /** * shmop_delete is used to delete a shared memory block. * * @param resource $shmid The shared memory block resource created by * shmop_open * @throws ShmopException * */ function shmop_delete($shmid): void { error_clear_last(); $result = \shmop_delete($shmid); if ($result === false) { throw ShmopException::createFromPhpError(); } } /** * shmop_read will read a string from shared memory block. * * @param resource $shmid The shared memory block identifier created by * shmop_open * @param int $start Offset from which to start reading * @param int $count The number of bytes to read. * 0 reads shmop_size($shmid) - $start bytes. * @return string Returns the data. * @throws ShmopException * */ function shmop_read($shmid, int $start, int $count): string { error_clear_last(); $result = \shmop_read($shmid, $start, $count); if ($result === false) { throw ShmopException::createFromPhpError(); } return $result; } /** * shmop_write will write a string into shared memory block. * * @param resource $shmid The shared memory block identifier created by * shmop_open * @param string $data A string to write into shared memory block * @param int $offset Specifies where to start writing data inside the shared memory * segment. * @return int The size of the written data. * @throws ShmopException * */ function shmop_write($shmid, string $data, int $offset): int { error_clear_last(); $result = \shmop_write($shmid, $data, $offset); if ($result === false) { throw ShmopException::createFromPhpError(); } return $result; }