Edit report at https://bugs.php.net/bug.php?id=53100&edit=1

 ID:                 53100
 Comment by:         marc-bennewitz at arcor dot de
 Reported by:        marc-bennewitz at arcor dot de
 Summary:            Add function to list available vars
 Status:             Open
 Type:               Feature/Change Request
 Package:            Semaphore related
 PHP Version:        5.3.3
 Block user comment: N
 Private report:     N

 New Comment:

what is the state of this issue ?
The patch exists for 9 month !


Previous Comments:
------------------------------------------------------------------------
[2010-10-27 23:12:45] 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

------------------------------------------------------------------------
[2010-10-18 21:53:58] 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 ...


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=53100&edit=1

Reply via email to