\duncan3dc\ForkerSharedMemory

Store exceptions in shared memory and retrieve them as string.

Summary

Methods
Properties
Constants
__construct()
addException()
getExceptions()
delete()
No public properties found
LIMIT
No protected methods found
No protected properties found
N/A
getMemory()
unserialize()
$key
N/A

Constants

LIMIT

LIMIT = 1000

How much shared memory to allocate.

Properties

$key

$key : integer

Type

integer — The key to use.

Methods

__construct()

__construct() 

Create a new instance.

addException()

addException(\Throwable  $exception) : void

Add an exception the shared memory.

Parameters

\Throwable $exception

The exception instance to add

getExceptions()

getExceptions() : array<mixed,\Throwable>

Get all the exceptions added to the shared memory.

Returns

array<mixed,\Throwable>

delete()

delete() : void

Delete the shared memory this instance represents.

getMemory()

getMemory() : resource

Get the shared memory segment.

Returns

resource

unserialize()

unserialize(resource  $memory) : array<mixed,\Throwable>

Get the exception details out of shared memory.

Parameters

resource $memory

The shmop resource from shmop_open()

Returns

array<mixed,\Throwable>