Doc #55528 [Asn->Csd]: Values for the "whence" parameter of the "stream_seek" method should be changed

From: Date: Tue, 08 Sep 2020 11:22:14 +0000
Subject: Doc #55528 [Asn->Csd]: 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-17878@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 Updated by: phpdocbot@php.net Reported by: bugs dot php at mohiva dot com Summary: Values for the "whence" parameter of the "stream_seek" method should be changed -Status: Assigned +Status: Closed Type: Documentation Problem Package: Streams related Operating System: Linux PHP Version: 5.3.8 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=doc/en.git;a=commit;h=70528fcff5b182ed42bcdee3acf0bf304896a518 Log: Fix #55528: Values for the "whence" parameter of the "stream_seek" method should be changed Previous Comments: ------------------------------------------------------------------------ [2011-08-29 11:52:38] bugs dot php at mohiva dot com The URL for the discussion on the internal list: http://news.php.net/php.internals/55000 ------------------------------------------------------------------------ [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 (#17878) next »