From 5c9dccea6183079dbc4d7f5f792df3c4436162b9 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 2 Dec 2004 14:26:02 +0000 Subject: [PATCH] fix example and make it work without warnings git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@173962 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/dio/functions/dio-fcntl.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/dio/functions/dio-fcntl.xml b/reference/dio/functions/dio-fcntl.xml index a6c0555452..4977076928 100644 --- a/reference/dio/functions/dio-fcntl.xml +++ b/reference/dio/functions/dio-fcntl.xml @@ -1,5 +1,5 @@ - + @@ -101,7 +101,7 @@ $fd = dio_open('/dev/ttyS0', O_RDWR); -if (dio_fcntl($fd, F_SETLK) == -1) { +if (dio_fcntl($fd, F_SETLK, Array("type"=>F_WRLCK)) == -1) { // the file descriptor appears locked echo "The lock can not be cleared. It is held by someone else."; } else {