From: Curt Zirzow [EMAIL PROTECTED]
change return to:
return ($this-fp? true: false);
technically, internally the function is treated as
function stream_open(...)
and will convert the value to a boolean value as you were
experiencing.
Dammit... I knew that whole this method should return TRUE or
* Thus wrote John Holmes:
This is the file that defines the custom stream and some of the
implementation. Not all methods are implemented, but I don't think that
matters to this issue.
Custom Stream Class:
?php
stream_wrapper_register('cache','CacheStream');
Is there some fundamental reason that I'm missing that makes this
impossible?
Summary: I'm writing a custom stream to wrap around regular fopen/close
functions (the actual stream will have more, but this is the part I'm
having an issue with). The stream_open() method creates a class variable
3 matches
Mail list logo