Hi!
Can you tell what exactly you're doing? Why is there any cast in the first
place?
As far as I can see, the include should eventually call
php_stream_open_for_zend_ex, which should give a ZEND_HANDLE_STREAM file
handle that defers reading to _php_stream_read and fsize to
php_zend_stream_fsiz
On Fri, 04 Mar 2011 01:26:20 -, Stas Malyshev
wrote:
I try to do some complex code with custom streams and I have discovered
the following problem:
The code in main/streams/cast.c, specifically _php_stream_cast, creates
fopencookie() synthetic stream for streams that are not actual f
Hmm, it has already supported through ZEND_HANDLE_STREAM. So then, changing
the interface of fopen_function to return zend_stream instead of FILE* should
be fine.
Moriyoshi
On 2011/03/05, at 3:05, Moriyoshi Koizumi wrote:
> It looks like the only solution is define a new stream type for zend_
It looks like the only solution is define a new stream type for zend_stream
that delegates stream operations to user-defined callbacks.
Moriyoshi
On 2011/03/04, at 10:26, Stas Malyshev wrote:
> Hi!
>
> I try to do some complex code with custom streams and I have discovered the
> following pro