[PHP-DEV] Patch to Sys V Sem and SHM From: Gavin Sherry (swm <email protected>)
Date: 03/15/01

Hi Guys,

Was doing some work with Sys V Semaphores in PHP today. Noticed a few
problems. Patch to add sem_remove() (ie, remove semaphore referenced by
Indetifier) is attached (C and header).

Previously, there was no other way to destroy semaphores opened in PHP. I
was using ipcrm too much and just wrote the code.

Happy to take over the maintenance of this section since I will be using
it a lot for some applications I am writing.

In doing this, I found a bug in Sys V Shm. Patch for this attached.

I've done this in something of a hurry so have not been able to make sure
that I am releasing the resources from the Zend API correctly. Will get
around to that, based on feedback (if any?).

All patches have been generated with diff -u.

Thanks

Gavin Sherry
Alcove Systems Engineering.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>