tony2001 Thu Dec 2 09:26:02 2004 EDT
Modified files:
/phpdoc/en/reference/dio/functions dio-fcntl.xml
Log:
fix example and make it work without warnings
http://cvs.php.net/diff.php/phpdoc/en/reference/dio/functions/dio-fcntl.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/dio/functions/dio-fcntl.xml
diff -u phpdoc/en/reference/dio/functions/dio-fcntl.xml:1.7
phpdoc/en/reference/dio/functions/dio-fcntl.xml:1.8
--- phpdoc/en/reference/dio/functions/dio-fcntl.xml:1.7 Tue Sep 7 17:36:22 2004
+++ phpdoc/en/reference/dio/functions/dio-fcntl.xml Thu Dec 2 09:26:02 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/dio.xml, last change in rev 1.1 -->
<refentry id="function.dio-fcntl">
<refnamediv>
@@ -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 {