mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
fixed sysvshm
This commit is contained in:
parent
be1b1e7b41
commit
49b65d0d65
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user