Jump to content


64 bits file functions extension

  • Please log in to reply
No replies to this topic

#1 yapning

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 22 November 2004 - 11:05 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users