Lines Matching refs:shm_var
252 smart_str shm_var = {0}; in PHP_FUNCTION() local
261 php_var_serialize(&shm_var, arg_var, &var_hash); in PHP_FUNCTION()
266 smart_str_free(&shm_var); in PHP_FUNCTION()
271 …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()
274 smart_str_free(&shm_var); in PHP_FUNCTION()
293 sysvshm_chunk *shm_var; in PHP_FUNCTION() local
309 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
310 shm_data = &shm_var->mem; in PHP_FUNCTION()
313 …_value, (const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_has… in PHP_FUNCTION()
365 sysvshm_chunk *shm_var; in php_put_shm_data() local
379 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
380 shm_var->key = key; in php_put_shm_data()
381 shm_var->length = len; in php_put_shm_data()
382 shm_var->next = total_size; in php_put_shm_data()
383 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
395 sysvshm_chunk *shm_var; in php_check_shm_data() local
403 shm_var = (sysvshm_chunk*) ((char *) ptr + pos); in php_check_shm_data()
404 if (shm_var->key == key) { in php_check_shm_data()
407 pos += shm_var->next; in php_check_shm_data()
409 if (shm_var->next <= 0 || pos < ptr->start) { in php_check_shm_data()