Lines Matching refs:shm_var
247 smart_str shm_var = {0}; in PHP_FUNCTION() local
262 php_var_serialize(&shm_var, arg_var, &var_hash); in PHP_FUNCTION()
266 …p_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.s? ZSTR_VAL(shm_var.s) : NULL, shm_var.s? ZSTR_… in PHP_FUNCTION()
269 smart_str_free(&shm_var); in PHP_FUNCTION()
287 sysvshm_chunk *shm_var; in PHP_FUNCTION() local
308 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
309 shm_data = &shm_var->mem; in PHP_FUNCTION()
312 …_value, (const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_has… in PHP_FUNCTION()
373 sysvshm_chunk *shm_var; in php_put_shm_data() local
387 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
388 shm_var->key = key; in php_put_shm_data()
389 shm_var->length = len; in php_put_shm_data()
390 shm_var->next = total_size; in php_put_shm_data()
391 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
402 sysvshm_chunk *shm_var; in php_check_shm_data() local
412 shm_var = (sysvshm_chunk*) ((char *) ptr + pos); in php_check_shm_data()
413 if (shm_var->key == key) { in php_check_shm_data()
416 pos += shm_var->next; in php_check_shm_data()
418 if (shm_var->next <= 0 || pos < ptr->start) { in php_check_shm_data()