From: ilovekernelpanic at yahoo dot de Operating system: Unix PHP version: 5.2.9 PHP Bug Type: Feature/Change Request Bug description: Better shm_-functions
Description: ------------ shm provides more speed than files or databases. But there is no proper way to check if a field exists. You can do @shm_get_var($connection, $field) !== false to check it. But: -With custom error handlers you will get a warning, when there is no such $field -It needs a lot of time to process the warning, but it should be fast There should be a function shm_has_var or shm_var_exists. A function shm_export_vars could convert the shared memory to an associative array. A function shm_export_keys: Like array_keys(shm_export_vars($connection)) but faster Those functions are very essential. When you don't have them you have to use the shared-memory as a linked list. A function shm_get_size: Return the size of the shared memory segment. Not necessary, because you can store it using shm_put_var($connection, 0, $size), but such a function would be more secure Maybe also shm_resize could be possible. With this function there could be better object oriented array like wrappers form shared memory. -- Edit bug report at http://bugs.php.net/?id=48529&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48529&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48529&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48529&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48529&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48529&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48529&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48529&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48529&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48529&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48529&r=support Expected behavior: http://bugs.php.net/fix.php?id=48529&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48529&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48529&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48529&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48529&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48529&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48529&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48529&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48529&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48529&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48529&r=mysqlcfg
