zeev Sat Jun 4 12:16:54 2005 EDT Modified files: /php-src/main main.c Log: __halt_compiler() patch interface http://cvs.php.net/diff.php/php-src/main/main.c?r1=1.627&r2=1.628&ty=u Index: php-src/main/main.c diff -u php-src/main/main.c:1.627 php-src/main/main.c:1.628 --- php-src/main/main.c:1.627 Mon May 16 04:37:08 2005 +++ php-src/main/main.c Sat Jun 4 12:16:53 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.627 2005/05/16 08:37:08 tony2001 Exp $ */ +/* $Id: main.c,v 1.628 2005/06/04 16:16:53 zeev Exp $ */ /* {{{ includes */ @@ -840,6 +840,11 @@ 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 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php