Req #53100 [Opn]: Add function to list available vars

From: Date: Sun, 11 Mar 2018 22:30:29 +0000
Subject: Req #53100 [Opn]: Add function to list available vars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214290@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53100&edit=1 ID: 53100 Updated by: cmb@php.net 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 ? This feature request might get more attention, if you submit a pull request for <https://github.com/php/php-src/>. Previous Comments: ------------------------------------------------------------------------ [2011-08-03 06:15:50] marc-bennewitz at arcor dot de what is the state of this issue ? The patch exists for 9 month ! ------------------------------------------------------------------------ [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

« previous php.bugs (#214290) next »