Edit report at https://bugs.php.net/bug.php?id=75327&edit=1
ID: 75327 User updated by: zhangsy at 1pei dot com dot cn Reported by: zhangsy at 1pei dot com dot cn -Summary: sync readerwriter lock problem +Summary: PECL sync readerwriter lock problem Status: Open Type: Bug -Package: *General Issues +Package: PECL Operating System: centos 6.2 PHP Version: 7.1.10 Block user comment: N Private report: N New Comment: update package to PECL sync Previous Comments: ------------------------------------------------------------------------ [2017-10-06 12:43:15] zhangsy at 1pei dot com dot cn Description: ------------ In the tests\014.phpt, the last fourth expect result should be bool(false), not bool(true), because the fourth writelock has not unlocked. var_dump($readwrite->readlock(0)); var_dump($readwrite->readlock(0)); var_dump($readwrite->readunlock()); var_dump($readwrite->writelock(0)); var_dump($readwrite->readunlock()); var_dump($readwrite->readunlock()); var_dump($readwrite->writelock(0)); var_dump($readwrite->writelock(0)); var_dump($readwrite->readlock(0)); var_dump($readwrite->writeunlock()); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(false) bool(true) bool(false) bool(true) <----Here should be false bool(false) bool(false) bool(true) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75327&edit=1 -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php