Lines Matching refs:shm_var
261 smart_str shm_var = {0}; in PHP_FUNCTION() local
270 php_var_serialize(&shm_var, arg_var, &var_hash); in PHP_FUNCTION()
275 smart_str_free(&shm_var); in PHP_FUNCTION()
280 …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()
283 smart_str_free(&shm_var); in PHP_FUNCTION()
302 sysvshm_chunk *shm_var; in PHP_FUNCTION() local
318 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
319 shm_data = &shm_var->mem; in PHP_FUNCTION()
322 …_value, (const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_has… in PHP_FUNCTION()
374 sysvshm_chunk *shm_var; in php_put_shm_data() local
388 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
389 shm_var->key = key; in php_put_shm_data()
390 shm_var->length = len; in php_put_shm_data()
391 shm_var->next = total_size; in php_put_shm_data()
392 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
404 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()