Skip to content

Commit 0acdeec

Browse files
committed
Merge branch 'PHP-5.5'
2 parents 5cdc71a + 0704e4b commit 0acdeec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/opcache/shared_alloc_shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int create_segments(size_t requested_size, zend_shared_segment_shm ***sha
111111
}
112112

113113
shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0);
114-
if (((int) shared_segments[i].common.p) == -1) {
114+
if (shared_segments[i].common.p == (void *)-1) {
115115
*error_in = "shmat";
116116
shmctl(shared_segments[i].shm_id, IPC_RMID, &sds);
117117
return ALLOC_FAILURE;

ext/opcache/zend_shared_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int
137137
int i;
138138
/* cleanup */
139139
for (i = 0; i < *shared_segments_count; i++) {
140-
if ((*shared_segments_p)[i]->p && (int)(*shared_segments_p)[i]->p != -1) {
140+
if ((*shared_segments_p)[i]->p && (*shared_segments_p)[i]->p != (void *)-1) {
141141
S_H(detach_segment)((*shared_segments_p)[i]);
142142
}
143143
}

0 commit comments

Comments
 (0)