Re: [PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-31 Thread John Holmes
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

Re: [PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-30 Thread Curt Zirzow
* 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');

[PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-29 Thread John Holmes
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