|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-04-03 14:26 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 14:00:01 2025 UTC |
Bug description: System V semaphores don't work. Solution: This bug is in sysvsem.c file look at lines near 273: /* This is correct for Solaris 2.6 which does not have union semun. */ if (semctl(semid, SYSVSEM_SEM, SETVAL, &max_acquire) == -1) { php3_error(E_WARNING, "semctl(SETVAL) failed for key 0x%x: %s", key, strerror(errno)); } must be not "&max_acquire" but "max_acquire"!!! the correct line is: if (semctl(semid, SYSVSEM_SEM, SETVAL, max_acquire) == -1) best regards, Ilia Stepanov