|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76881 shmop_read() with $count = 0 returns whole segment
Submitted: 2018-09-14 09:55 UTC Modified: 2018-09-14 11:25 UTC
From: pavel dot krush at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pavel dot krush at gmail dot com
New email:
PHP Version: OS:


 [2018-09-14 09:55 UTC] pavel dot krush at gmail dot com
When calling

shmop_read($shmId, $offset, 0);

it works like

shmop_read($shmId, $offset, shmop_size($shmId) - $offset);

And there is no information about that behaviour in the docs


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-14 10:05 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Unknown/Other Function
 [2018-09-14 10:05 UTC]
That is correct.
 [2018-09-14 11:24 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #76881: shmop_read() with $count = 0 returns whole segment
 [2018-09-14 11:25 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-09-14 11:25 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC]
Automatic comment on behalf of cmb
Log: Fix #76881: shmop_read() with $count = 0 returns whole segment
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 18:01:26 2020 UTC