Skip to content

Commit bc25fc5

Browse files
committed
MFH: remove warnings in resource dtor
1 parent 2b22963 commit bc25fc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/sysvsem/sysvsem.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,15 @@ static void release_sysvsem_sem(zend_rsrc_list_entry *rsrc TSRMLS_DC)
134134
/* Release the semaphore if it has been acquired but not released. */
135135

136136
if (sem_ptr->count) {
137-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Releasing SysV semaphore id %d key 0x%x in request cleanup", sem_ptr->id, sem_ptr->key);
138137

139138
sop[1].sem_num = SYSVSEM_SEM;
140139
sop[1].sem_op = sem_ptr->count;
141140
sop[1].sem_flg = SEM_UNDO;
142141

143142
opcount++;
144143
}
145-
if (semop(sem_ptr->semid, sop, opcount) == -1) {
146-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed in release_sysvsem_sem for key 0x%x: %s", sem_ptr->key, strerror(errno));
147-
}
148144

145+
semop(sem_ptr->semid, sop, opcount);
149146
efree(sem_ptr);
150147
}
151148
/* }}} */

0 commit comments

Comments
 (0)