From: xuefer at 21cn dot com Operating system: cygwin PHP version: 5CVS-2005-08-13 (dev) PHP Bug Type: Filesystem function related Bug description: yet another fseek/SEEK_SET bug in CVS
Description: ------------ fseek SEEK_SET bug under cygwin tested with lastest CVS checkout Reproduce code: --------------- <?php $fp = fopen(__FILE__, "rb"); fseek($fp, 0, SEEK_SET); echo fread($fp, 1); fseek($fp, 0, SEEK_SET); echo fread($fp, 1); ?> Expected result: ---------------- << Actual result: -------------- <? -- Edit bug report at http://bugs.php.net/?id=34118&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34118&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34118&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34118&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34118&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34118&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34118&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34118&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34118&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34118&r=support Expected behavior: http://bugs.php.net/fix.php?id=34118&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34118&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34118&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34118&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34118&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34118&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34118&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34118&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34118&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34118&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34118&r=mysqlcfg