mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
MFH: remove warnings in resource dtor
This commit is contained in:
parent
2b229635c2
commit
bc25fc52bf
1 changed files with 1 additions and 4 deletions
|
@ -134,7 +134,6 @@ static void release_sysvsem_sem(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
|||
/* Release the semaphore if it has been acquired but not released. */
|
||||
|
||||
if (sem_ptr->count) {
|
||||
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);
|
||||
|
||||
sop[1].sem_num = SYSVSEM_SEM;
|
||||
sop[1].sem_op = sem_ptr->count;
|
||||
|
@ -142,10 +141,8 @@ static void release_sysvsem_sem(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
|||
|
||||
opcount++;
|
||||
}
|
||||
if (semop(sem_ptr->semid, sop, opcount) == -1) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed in release_sysvsem_sem for key 0x%x: %s", sem_ptr->key, strerror(errno));
|
||||
}
|
||||
|
||||
semop(sem_ptr->semid, sop, opcount);
|
||||
efree(sem_ptr);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue