Lines Matching refs:shm_key
134 zend_long shm_key, shm_id, shm_size, shm_flag = 0666; in PHP_FUNCTION() local
137 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &shm_key, &shm_size, &shm_size_is_n… in PHP_FUNCTION()
151 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
153 …rror_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": memorysize too small", shm_key); in PHP_FUNCTION()
156 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
157 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
163 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
181 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
240 zend_long shm_key; in PHP_FUNCTION() local
245 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Olz", &shm_id, sysvshm_ce, &shm_key, &arg_v… in PHP_FUNCTION()
267 …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()
284 zend_long shm_key; in PHP_FUNCTION() local
291 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &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()
325 zend_long shm_key; in PHP_FUNCTION() local
328 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
338 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
346 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
349 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
359 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
362 php_error_docref(NULL, E_WARNING, "Variable key " ZEND_LONG_FMT " doesn't exist", shm_key); in PHP_FUNCTION()