Req #55528 [NEW]: Values for the "whence" parameter of the "stream_seek" method should be changed
| From: | bugs dot php at mohiva dot com | Date: | Mon, 29 Aug 2011 11:48:35 +0000 |
| Subject: | Req #55528 [NEW]: Values for the "whence" parameter of the "stream_seek" method should be changed | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7081@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.8
Package: Documentation problem
Bug Type: Feature/Change Request
Bug description:Values for the "whence" parameter of the "stream_seek" method
should be changed
Description:
------------
It's documented that the streamWrapper::stream_seek method accepts the
following values for the $whence parameter:
SEEK_SET - Set position equal to offset bytes.
SEEK_CUR - Set position to current location plus offset.
SEEK_END - Set position to end-of-file plus offset.
But the SEEK_CUR value gets never be passed to this method because SEEK_CUR
seeks are internally converted to SEEK_SET seeks.
Expected result:
----------------
The possible values for the "whence" parameter of the "stream_seek" method
should only be SEEK_SET and SEEK_END. And there should be a hint that the
SEEK_CUR seeks are internally converted to SEEK_SET seeks.
--
Edit bug report at https://bugs.php.net/bug.php?id=55528&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55528&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55528&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55528&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55528&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55528&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55528&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55528&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55528&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55528&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55528&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55528&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55528&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55528&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55528&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55528&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55528&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55528&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55528&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55528&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55528&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55528&r=mysqlcfg