]> granicus.if.org Git - php/commitdiff
__halt_compiler() patch interface
authorZeev Suraski <zeev@php.net>
Sat, 4 Jun 2005 16:16:53 +0000 (16:16 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 4 Jun 2005 16:16:53 +0000 (16:16 +0000)
main/main.c

index cb687576d4b82b3266cfaea097339996c2ad6ecf..f64a35cc429987cecfabe0ac976b449a79ff9f3e 100644 (file)
@@ -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;
@@ -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;