Skip to content

Commit

Permalink
__halt_compiler() patch interface
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Jun 4, 2005
1 parent d33500e commit 5d880ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@ static void stream_closer_for_zend(void *handle TSRMLS_DC)
php_stream_close((php_stream*)handle);
}

static long stream_fteller_for_zend(void *handle TSRMLS_DC)
{
return (long)php_stream_tell((php_stream*)handle);
}

static int php_stream_open_for_zend(const char *filename, zend_file_handle *handle TSRMLS_DC)
{
php_stream *stream;
Expand All @@ -853,6 +858,7 @@ static int php_stream_open_for_zend(const char *filename, zend_file_handle *hand
handle->handle.stream.handle = stream;
handle->handle.stream.reader = (zend_stream_reader_t)_php_stream_read;
handle->handle.stream.closer = stream_closer_for_zend;
handle->handle.stream.fteller = stream_fteller_for_zend;
handle->handle.stream.interactive = 0;

return SUCCESS;
Expand Down

0 comments on commit 5d880ee

Please sign in to comment.