RE: [PHP] Re: semaphores not automatically releasing at end of script

2001-12-07 Thread Jon Haworth
automatically releasing at end of script ANYONE CAN HELP WITH THIS PLEASE??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-07 Thread Thomas
ANYONE CAN HELP WITH THIS PLEASE??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-05 Thread Thomas
The following code fails after the first call: if(!($lock_id = sem_get(2501)) || !sem_acquire($lock_id)) die('failed to get semaphore') ..do something, error triggers "exit;".. sem_release($lock_id) But having sem_release right after acquire makes everything work ok. I use FreeBSD and see ther

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-04 Thread Richard Lynch
> The PHP manual says it will release any acquired semaphores if they are > not released before the end of the script processing, but this is NOT > happening as it should. Any reasons why? Is this a known bug? Has anyone > else experienced this? Show us source code. Check at http://bugs.php.net/