Req #55528 [Com]: Values for the "whence" parameter of the "stream_seek" method should be changed

From: Date: Mon, 29 Aug 2011 11:52:38 +0000
Subject: Req #55528 [Com]: Values for the "whence" parameter of the "stream_seek" method should be changed
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7082@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55528&edit=1 ID: 55528 Comment by: bugs dot php at mohiva dot com Reported by: bugs dot php at mohiva dot com Summary: Values for the "whence" parameter of the "stream_seek" method should be changed Status: Open Type: Feature/Change Request Package: Documentation problem Operating System: Linux PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: The URL for the discussion on the internal list: http://news.php.net/php.internals/55000 Previous Comments: ------------------------------------------------------------------------ [2011-08-29 11:48:35] bugs dot php at mohiva dot com 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 this bug report at https://bugs.php.net/bug.php?id=55528&edit=1

« previous php.doc.bugs (#7082) next »