Bug in Extended manual

"David Vance" <[email protected]>
Newsgroups gmane.comp.php.documentation.windows
Message-ID <002a01c3be9b$62933a10$77c05093@324800470>
Not sure if this has been reported yet, but in the "stream_wrapper_register"
function page in the extended chm, the function names in the list of related
functions are left out.....

<snip>

....

This method is called when the stream is closed, using fclose(). You must
release any resources that were locked or allocated by the stream.

This method is called in response to fread() and fgets() calls on the
stream. You must return up-to count bytes of data from the current
read/write position as a string. If there are less than count bytes
available, return as many as are available. If no more data is available,
return either FALSE or an empty string. You must also update the read/write
position of the stream by the number of bytes that were successfully read.

This method is called in response to fwrite() calls on the stream. You
should store data into the underlying storage used by your stream. If there
is not enough room, try to store as many bytes as possible. You should
return the number of bytes that were successfully stored in the stream, or 0
if none could be stored. You must also update the read/write position of the
stream by the number of bytes that were successfully written.

....

</snip>



In the php.net online doc it is correct....

<snip>

....

void stream_close ( void )

This method is called when the stream is closed, using fclose(). You must
release any resources that were locked or allocated by the stream.

string stream_read ( int count)

This method is called in response to fread() and fgets() calls on the
stream. You must return up-to count bytes of data from the current
read/write position as a string. If there are less than count bytes
available, return as many as are available. If no more data is available,
return either FALSE or an empty string. You must also update the read/write
position of the stream by the number of bytes that were successfully read.

int stream_write ( string data)

This method is called in response to fwrite() calls on the stream. You
should store data into the underlying storage used by your stream. If there
is not enough room, try to store as many bytes as possible. You should
return the number of bytes that were successfully stored in the stream, or 0
if none could be stored. You must also update the read/write position of the
stream by the number of bytes that were successfully written.

....

</snip>

Thanks.

-- 
PHP CHM Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.