[PHP-BUG] Bug #71955 [NEW]: shmop_open: creating infinite amount of segments
[email protected] ("kakkau at grr dot la")
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: kakkau at grr dot la
Operating system:
PHP version: Irrelevant
Package: PHP Language Specification
Bug Type: Bug
Bug description:shmop_open: creating infinite amount of segments
Description:
------------
1. Run shmop_open with $key=0 and $flags="n" multiple times.
2. Wonder about a missing warning when using the same key for creation.
3. Check the output of ipcs -m. There should show up multiple segments
now.
For other integers <> 0 shmop_open works as expected
Test script:
---------------
<?php
$res = shmop_open(0,"n",0600,1024);
$res = shmop_open(0,"n",0600,1024);
?>
Expected result:
----------------
At least a warning should be thrown w/o creating another segment.
Warning: shmop_open(): unable to attach or create shared memory segment
in php shell code on line 1
Call Stack:
10.9282 120780 1. {main}() php shell code:0
10.9282 120920 2. shmop_open() php shell code:1
--
Edit bug report at https://bugs.php.net/bug.php?id=71955&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71955&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71955&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71955&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71955&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71955&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71955&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71955&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71955&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71955&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71955&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71955&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71955&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71955&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71955&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71955&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71955&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71955&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71955&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71955&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71955&r=mysqlcfg