note 115111 added to streamwrapper.stream-seek

From: Date: Tue, 27 May 2014 08:55:10 +0000
Subject: note 115111 added to streamwrapper.stream-seek
Groups: php.notes 
Request: Send a blank email to php-notes+get-199632@lists.php.net to get a copy of this message
Please notice that the return value of this function is a boolean but the return value of fseek is 0 for ok and -1 for failure. Please use this implementation when working with files: function stream_seek($offset, $whence) { if(0 === fseek($this->_handler, $offset, $whence)){ return true; } return false; } ---- Server IP: 72.52.91.14 Probable Submitter: 188.182.116.94 ---- Manual Page -- http://php.net/manual/en/streamwrapper.stream-seek.php Edit -- https://master.php.net/note/edit/115111 Del: integrated -- https://master.php.net/note/delete/115111/integrated Del: useless -- https://master.php.net/note/delete/115111/useless Del: bad code -- https://master.php.net/note/delete/115111/bad+code Del: spam -- https://master.php.net/note/delete/115111/spam Del: non-english -- https://master.php.net/note/delete/115111/non-english Del: in docs -- https://master.php.net/note/delete/115111/in+docs Del: other reasons-- https://master.php.net/note/delete/115111 Reject -- https://master.php.net/note/reject/115111 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199632) next »