@@ -54,7 +54,7 @@ function msg_queue_exists(int $key): void
54
54
* specified queue of the type specified by
55
55
* desired_message_type.
56
56
*
57
- * @param resource $queue The message queue.
57
+ * @param \SysvMessageQueue $queue The message queue.
58
58
* @param int $desired_message_type If desired_message_type is 0, the message from the front
59
59
* of the queue is returned. If desired_message_type is
60
60
* greater than 0, then the first message of that type is returned.
@@ -120,7 +120,7 @@ function msg_queue_exists(int $key): void
120
120
* @throws SemException
121
121
*
122
122
*/
123
- function msg_receive ($ queue , int $ desired_message_type , ?int &$ received_message_type , int $ max_message_size , &$ message , bool $ unserialize = true , int $ flags = 0 , ?int &$ error_code = null ): void
123
+ function msg_receive (\ SysvMessageQueue $ queue , int $ desired_message_type , ?int &$ received_message_type , int $ max_message_size , &$ message , bool $ unserialize = true , int $ flags = 0 , ?int &$ error_code = null ): void
124
124
{
125
125
error_clear_last ();
126
126
$ safeResult = \msg_receive ($ queue , $ desired_message_type , $ received_message_type , $ max_message_size , $ message , $ unserialize , $ flags , $ error_code );
@@ -136,11 +136,11 @@ function msg_receive($queue, int $desired_message_type, ?int &$received_message_
136
136
* processes have finished working with the message queue and you need to
137
137
* release the system resources held by it.
138
138
*
139
- * @param resource $queue The message queue.
139
+ * @param \SysvMessageQueue $queue The message queue.
140
140
* @throws SemException
141
141
*
142
142
*/
143
- function msg_remove_queue ($ queue ): void
143
+ function msg_remove_queue (\ SysvMessageQueue $ queue ): void
144
144
{
145
145
error_clear_last ();
146
146
$ safeResult = \msg_remove_queue ($ queue );
@@ -155,7 +155,7 @@ function msg_remove_queue($queue): void
155
155
* message_type (which MUST be greater than 0) to
156
156
* the message queue specified by queue.
157
157
*
158
- * @param resource $queue The message queue.
158
+ * @param \SysvMessageQueue $queue The message queue.
159
159
* @param int $message_type The type of the message (MUST be greater than 0)
160
160
* @param mixed $message The body of the message.
161
161
*
@@ -183,7 +183,7 @@ function msg_remove_queue($queue): void
183
183
* @throws SemException
184
184
*
185
185
*/
186
- function msg_send ($ queue , int $ message_type , $ message , bool $ serialize = true , bool $ blocking = true , ?int &$ error_code = null ): void
186
+ function msg_send (\ SysvMessageQueue $ queue , int $ message_type , $ message , bool $ serialize = true , bool $ blocking = true , ?int &$ error_code = null ): void
187
187
{
188
188
error_clear_last ();
189
189
$ safeResult = \msg_send ($ queue , $ message_type , $ message , $ serialize , $ blocking , $ error_code );
@@ -204,13 +204,13 @@ function msg_send($queue, int $message_type, $message, bool $serialize = true, b
204
204
* root privileges are required to raise the msg_qbytes values above the
205
205
* system defined limit.
206
206
*
207
- * @param resource $queue The message queue.
207
+ * @param \SysvMessageQueue $queue The message queue.
208
208
* @param array $data You specify the values you require by setting the value of the keys
209
209
* that you require in the data array.
210
210
* @throws SemException
211
211
*
212
212
*/
213
- function msg_set_queue ($ queue , array $ data ): void
213
+ function msg_set_queue (\ SysvMessageQueue $ queue , array $ data ): void
214
214
{
215
215
error_clear_last ();
216
216
$ safeResult = \msg_set_queue ($ queue , $ data );
@@ -226,7 +226,7 @@ function msg_set_queue($queue, array $data): void
226
226
* This is useful, for example, to determine which process sent the message
227
227
* that was just received.
228
228
*
229
- * @param resource $queue The message queue.
229
+ * @param \SysvMessageQueue $queue The message queue.
230
230
* @return array On success, the return value is an array whose keys and values have the following
231
231
* meanings:
232
232
*
@@ -303,7 +303,7 @@ function msg_set_queue($queue, array $data): void
303
303
* @throws SemException
304
304
*
305
305
*/
306
- function msg_stat_queue ($ queue ): array
306
+ function msg_stat_queue (\ SysvMessageQueue $ queue ): array
307
307
{
308
308
error_clear_last ();
309
309
$ safeResult = \msg_stat_queue ($ queue );
@@ -324,7 +324,7 @@ function msg_stat_queue($queue): array
324
324
* explicitly released will be released automatically and a warning will be
325
325
* generated.
326
326
*
327
- * @param resource $semaphore semaphore is a semaphore
327
+ * @param \SysvSemaphore $semaphore semaphore is a semaphore
328
328
* obtained from sem_get.
329
329
* @param bool $non_blocking Specifies if the process shouldn't wait for the semaphore to be acquired.
330
330
* If set to TRUE, the call will return
@@ -333,7 +333,7 @@ function msg_stat_queue($queue): array
333
333
* @throws SemException
334
334
*
335
335
*/
336
- function sem_acquire ($ semaphore , bool $ non_blocking = false ): void
336
+ function sem_acquire (\ SysvSemaphore $ semaphore , bool $ non_blocking = false ): void
337
337
{
338
338
error_clear_last ();
339
339
$ safeResult = \sem_acquire ($ semaphore , $ non_blocking );
@@ -385,12 +385,12 @@ function sem_get(int $key, int $max_acquire = 1, int $permissions = 0666, bool $
385
385
* After releasing the semaphore, sem_acquire
386
386
* may be called to re-acquire it.
387
387
*
388
- * @param resource $semaphore A Semaphore as returned by
388
+ * @param \SysvSemaphore $semaphore A Semaphore as returned by
389
389
* sem_get.
390
390
* @throws SemException
391
391
*
392
392
*/
393
- function sem_release ($ semaphore ): void
393
+ function sem_release (\ SysvSemaphore $ semaphore ): void
394
394
{
395
395
error_clear_last ();
396
396
$ safeResult = \sem_release ($ semaphore );
@@ -405,12 +405,12 @@ function sem_release($semaphore): void
405
405
*
406
406
* After removing the semaphore, it is no longer accessible.
407
407
*
408
- * @param resource $semaphore A semaphore as returned
408
+ * @param \SysvSemaphore $semaphore A semaphore as returned
409
409
* by sem_get.
410
410
* @throws SemException
411
411
*
412
412
*/
413
- function sem_remove ($ semaphore ): void
413
+ function sem_remove (\ SysvSemaphore $ semaphore ): void
414
414
{
415
415
error_clear_last ();
416
416
$ safeResult = \sem_remove ($ semaphore );
@@ -465,11 +465,11 @@ function shm_attach(int $key, ?int $size = null, int $permissions = 0666)
465
465
* shm_attach. Remember, that shared memory still exist
466
466
* in the Unix system and the data is still present.
467
467
*
468
- * @param resource $shm A shared memory segment obtained from shm_attach.
468
+ * @param \SysvSharedMemory $shm A shared memory segment obtained from shm_attach.
469
469
* @throws SemException
470
470
*
471
471
*/
472
- function shm_detach ($ shm ): void
472
+ function shm_detach (\ SysvSharedMemory $ shm ): void
473
473
{
474
474
error_clear_last ();
475
475
$ safeResult = \shm_detach ($ shm );
@@ -489,7 +489,7 @@ function shm_detach($shm): void
489
489
* index or if there was not enough shared memory remaining to complete your
490
490
* request.
491
491
*
492
- * @param resource $shm A shared memory segment obtained from shm_attach.
492
+ * @param \SysvSharedMemory $shm A shared memory segment obtained from shm_attach.
493
493
* @param int $key The variable key.
494
494
* @param mixed $value The variable. All variable types
495
495
* that serialize supports may be used: generally
@@ -498,7 +498,7 @@ function shm_detach($shm): void
498
498
* @throws SemException
499
499
*
500
500
*/
501
- function shm_put_var ($ shm , int $ key , $ value ): void
501
+ function shm_put_var (\ SysvSharedMemory $ shm , int $ key , $ value ): void
502
502
{
503
503
error_clear_last ();
504
504
$ safeResult = \shm_put_var ($ shm , $ key , $ value );
@@ -512,12 +512,12 @@ function shm_put_var($shm, int $key, $value): void
512
512
* Removes a variable with a given key
513
513
* and frees the occupied memory.
514
514
*
515
- * @param resource $shm A shared memory segment obtained from shm_attach.
515
+ * @param \SysvSharedMemory $shm A shared memory segment obtained from shm_attach.
516
516
* @param int $key The variable key.
517
517
* @throws SemException
518
518
*
519
519
*/
520
- function shm_remove_var ($ shm , int $ key ): void
520
+ function shm_remove_var (\ SysvSharedMemory $ shm , int $ key ): void
521
521
{
522
522
error_clear_last ();
523
523
$ safeResult = \shm_remove_var ($ shm , $ key );
@@ -531,11 +531,11 @@ function shm_remove_var($shm, int $key): void
531
531
* shm_remove removes the shared memory
532
532
* shm. All data will be destroyed.
533
533
*
534
- * @param resource $shm A shared memory segment obtained from shm_attach.
534
+ * @param \SysvSharedMemory $shm A shared memory segment obtained from shm_attach.
535
535
* @throws SemException
536
536
*
537
537
*/
538
- function shm_remove ($ shm ): void
538
+ function shm_remove (\ SysvSharedMemory $ shm ): void
539
539
{
540
540
error_clear_last ();
541
541
$ safeResult = \shm_remove ($ shm );
0 commit comments