php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53100 Add function to list available vars
Submitted: 2010-10-18 21:53 UTC Modified: 2018-03-11 22:30 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:0 of 0 (0.0%)
From: marc-bennewitz at arcor dot de Assigned:
Status: Open Package: Semaphore related
PHP Version: 5.3.3 OS:
Private report: No CVE-ID: None
 [2010-10-18 21:53 UTC] marc-bennewitz at arcor dot de
Description:
------------
It's not possible to get a list of available vars.

Test script:
---------------
shm_put_var($shm, 123, 'one');
ahm_put_var($shm, 456, 'two');
var_dump(shm_list_vars($shm));

Expected result:
----------------
array(2) {
  [0]=>
  int(123)
  [1]=>
  int(456)
}
*or*
array(2) {
  [123]=>
  string(3)"one"
  [456]=>
  string(3)"two"
}

Actual result:
--------------
PHP Fatal error:  Call to undefined function shm_list_vars() in ...

Patches

sysvshm.diff (last revision 2010-10-27 21:09 UTC by marc-bennewitz at arcor dot de)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-27 23:12 UTC] marc-bennewitz at arcor dot de
patch:
- added function shm_get_vars(resource $id) to get an associative array of all variable keys and values
- added function shm_list_vars(resource $id) to get an indexed array of all keys
 [2011-08-03 06:15 UTC] marc-bennewitz at arcor dot de
what is the state of this issue ?
The patch exists for 9 month !
 [2018-03-11 22:30 UTC] cmb@php.net
> what is the state of this issue ?

This feature request might get more attention, if you submit a
pull request for <https://github.com/php/php-src/>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC