[PHP] Re: Semaphores

2003-08-07 Thread l0t3k
"Cristiano Duarte" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know there is no support for semaphores in Windows. > But does the Windows and Mac implement semaphores ? If they don't what is > used instead ? they both support semaphores. its just that most PHP developers seem

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

2001-12-07 Thread Jon Haworth
You probably have a better chance if you include (a) some code (b) an error message (c) a description of your environment Cheers Jon -Original Message- From: Thomas [mailto:[EMAIL PROTECTED]] Sent: 07 December 2001 11:01 To: [EMAIL PROTECTED] Subject: [PHP] Re: semaphores not

[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/