"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
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
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]
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
> 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/
5 matches
Mail list logo