note 102644 modified in function.shmop-open by danbrown
| From: | danbrown@php.net | Date: | Sat, 26 Feb 2011 00:56:12 +0000 |
| Subject: | note 102644 modified in function.shmop-open by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177344@lists.php.net to get a copy of this message | ||
On win xp 32bit php 5.2.6 recreation of shared memory block with the same id but bigger size fails.
<?php
$shm_key = 0xff3;
$shm_id = shmop_open($shm_key, "c", 0666, 128);
shmop_delete($shm_id);
shmop_close($shm_id);
$shm_id = shmop_open($shm_key, "c", 0666, 32);
shmop_delete($shm_id);
shmop_close($shm_id);
$shm_id = shmop_open($shm_key, "c", 0666, 1024); // on win32 fails there
shmop_delete($shm_id);
shmop_close($shm_id);
?>
--was--
On win xp 32bit php 5.2.6 recreation of shared memory block with the same id but bigger size fails.
<?
$shm_key = 0xff3;
$shm_id = shmop_open($shm_key, "c", 0666, 128);
shmop_delete($shm_id);
shmop_close($shm_id);
$shm_id = shmop_open($shm_key, "c", 0666, 32);
shmop_delete($shm_id);
shmop_close($shm_id);
$shm_id = shmop_open($shm_key, "c", 0666, 1024); // on win32 fails there
shmop_delete($shm_id);
shmop_close($shm_id);
?>
http://php.net/manual/en/function.shmop-open.php