Lines Matching refs:shm_key
157 zend_long shm_key, shm_id, shm_size = php_sysvshm.init_mem, shm_flag = 0666; in PHP_FUNCTION() local
159 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|ll", &shm_key, &shm_size, &shm_flag)) { in PHP_FUNCTION()
171 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
173 …rror_docref(NULL, E_WARNING, "failed for key 0x" ZEND_XLONG_FMT ": memorysize too small", shm_key); in PHP_FUNCTION()
177 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
178 …php_error_docref(NULL, E_WARNING, "failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
185 …php_error_docref(NULL, E_WARNING, "failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
200 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
250 zend_long shm_key; in PHP_FUNCTION() local
255 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rlz", &shm_id, &shm_key, &arg_var)) { in PHP_FUNCTION()
271 …ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.s? ZSTR_VAL(shm_var.s) : NULL, shm_var.… in PHP_FUNCTION()
289 zend_long shm_key; in PHP_FUNCTION() local
296 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
303 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
306 php_error_docref(NULL, E_WARNING, "variable key " ZEND_LONG_FMT " doesn't exist", shm_key); in PHP_FUNCTION()
326 zend_long shm_key; in PHP_FUNCTION() local
329 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
333 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
342 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
345 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
350 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
353 php_error_docref(NULL, E_WARNING, "variable key " ZEND_LONG_FMT " doesn't exist", shm_key); in PHP_FUNCTION()