ID:          32960
 Updated by:  [EMAIL PROTECTED]
-Summary:     English : db2
 Reported By: [EMAIL PROTECTED]
 Status:      Open
 Bug Type:    Documentation problem
 PHP Version: Irrelevant
 New Comment:

By the way, check the example title of dio-open.xml, dio-seek.xml

They all have : 
"<title>Setting the baud rate on a serial port</title>"


Previous Comments:
------------------------------------------------------------------------

[2005-05-06 06:13:48] [EMAIL PROTECTED]

Description:
------------
reference/dio/functions/dio-seek.xml

In the new doc you said :
"SEEK_END - Specifies that pos is a count of characters from the end of
the file. A negative count specifies a position within the current
extent of the file; a positive count specifies a position past the
current end. If you set the position past the current end, and actually
write data, you will extend the file with zeros up to that position."

And in the example :
"dio_seek($fd, SEEK_END, -10);
// position is now at 10 characters past the end of the file.
// The 10 characters between the end of the file and the current
// position are filled with zeros."


I think you do the inverse... ? you said in the doc that - remain in
the file, and + pad with 0, but in the example it seems to be the
inverse. You do -10, and you said it goes after the end...

If the doc is ok, it should be a little bit more explicit.





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32960&edit=1

Reply via email to