diff options
author | Antony Dovgal <tony2001@php.net> | 2007-05-11 15:46:38 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-05-11 15:46:38 +0000 |
commit | bc25fc52bfec6726f390296282d3623b1646411b (patch) | |
tree | 9e85ed0426a1f457f2b82602892964534ca086d1 /ext/sysvsem | |
parent | 2b229635c2f98690a68626179e921abea155ad4d (diff) | |
download | php-git-bc25fc52bfec6726f390296282d3623b1646411b.tar.gz |
MFH: remove warnings in resource dtor
Diffstat (limited to 'ext/sysvsem')
-rw-r--r-- | ext/sysvsem/sysvsem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/sysvsem/sysvsem.c b/ext/sysvsem/sysvsem.c index b282430244..cd1450eb5c 100644 --- a/ext/sysvsem/sysvsem.c +++ b/ext/sysvsem/sysvsem.c @@ -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); } /* }}} */ |