Jump to content

64 bits file functions extension


yapning

Recommended Posts

I've written PHP extension for fseek64 and ftell64. I was unable to get the file pointer/descriptor from the php_stream because php_stdio_stream_data is defined in the main/stream.c itself, so I copied exactly the struct over into my file64.c extension program just to try.

 

php_stream *stream;

php_stdio_stream_data *data;

__int64 ret;

 

...

...

 

data = (php_stdio_stream_data*)stream->abstract;

ret = _telli64(data->fd);

 

I would be very greatful if someone can give some tips or guidance.

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/2062-64-bits-file-functions-extension/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.