php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23822 No mention of ftok on shmop_open
Submitted: 2003-05-26 19:30 UTC Modified: 2003-05-27 03:16 UTC
From: davey@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2RC4 OS: N/A
Private report: No CVE-ID: None
 [2003-05-26 19:30 UTC] davey@php.net
I have just spent about 2hrs looking for how to generate a key for the first argument in shmop_open(). 

I ended up visiting #C on freenode to ask them as the notes on shmop_open() mentions the API is based on C's shm API, they gave me the C answer and quick search for ftok meant I had found what I needed.

Could you add a 'See Also: ftok()' to the shmop_open() page and also perhaps to ref.shmop.php

Aswell as ftok saying its a 'long' int and any number within that range is fine (for people who don't want to use ftok/use PHP < 4.2.0)

Full docs on ftok would be nice also, sure they can't be long!

- Davey

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-27 03:16 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 05:00:01 2026 UTC