fixed sysvshm

This commit is contained in:
Anatol Belski 2014-08-20 09:44:43 -07:00
parent be1b1e7b41
commit 49b65d0d65
2 changed files with 5 additions and 5 deletions

View File

@ -46,10 +46,10 @@ typedef struct {
typedef struct {
char magic[8];
long start;
long end;
long free;
long total;
php_int_t start;
php_int_t end;
php_int_t free;
php_int_t total;
} sysvshm_chunk_head;
typedef struct {

View File

@ -346,7 +346,7 @@ PHP_FUNCTION(shm_remove_var)
shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key);
if (shm_varpos < 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "variable key %id doesn't exist", shm_key);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "variable key %pd doesn't exist", shm_key);
RETURN_FALSE;
}
php_remove_shm_data((shm_list_ptr->ptr), shm_varpos);