If you are writing a stream wrapper for Drupal 7 be mindful of two things:
- If your code throws a notice then up to and including 5.3.5 extremely weird bugs exist that completely break your script.
- When reading the whole file (for example:
file_get_contents
), as long asstream_read
returns non-empty strings, the return value ofstream_eof
is ignored.
.
Commenting on this Story is closed.
I don't really know about this stream wrappers thing. Maybe you can post more details about this one so that we reader would understand you article very well.
striae