Lines Matching refs:shm_key
133 zend_long shm_key, shm_id, shm_size, shm_flag = 0666; in PHP_FUNCTION() local
136 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &shm_key, &shm_size, &shm_size_is_n… in PHP_FUNCTION()
150 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
152 …rror_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": memorysize too small", shm_key); in PHP_FUNCTION()
155 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
156 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
162 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", shm_key, strerror(err… in PHP_FUNCTION()
180 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
239 zend_long shm_key; in PHP_FUNCTION() local
244 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Olz", &shm_id, sysvshm_ce, &shm_key, &arg_v… in PHP_FUNCTION()
266 …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()
283 zend_long shm_key; in PHP_FUNCTION() local
290 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
302 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
305 php_error_docref(NULL, E_WARNING, "Variable key " ZEND_LONG_FMT " doesn't exist", shm_key); in PHP_FUNCTION()
324 zend_long shm_key; in PHP_FUNCTION() local
327 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
337 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
345 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
348 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
358 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
361 php_error_docref(NULL, E_WARNING, "Variable key " ZEND_LONG_FMT " doesn't exist", shm_key); in PHP_FUNCTION()