From: [EMAIL PROTECTED] Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: English : db2
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 bug report at http://bugs.php.net/?id=32960&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32960&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32960&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32960&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32960&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32960&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32960&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32960&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32960&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32960&r=support Expected behavior: http://bugs.php.net/fix.php?id=32960&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32960&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32960&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32960&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32960&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32960&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32960&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32960&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32960&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32960&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32960&r=mysqlcfg
