From 201446c2b52444c00eed00df7900f2f9c7f6922b Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 16 Mar 2002 16:14:56 +0000 Subject: [PATCH] Ooops. --- ext/standard/file.c | 4 ++-- ext/standard/file.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 06bcb9daf1..78259c6675 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -372,7 +372,7 @@ PHP_FUNCTION(get_file_contents) { char *filename; int filename_len; - char *contents, *target_buf; + char *contents; zend_bool use_include_path = 0; php_stream *stream; int len, newlen; @@ -398,7 +398,7 @@ PHP_FUNCTION(get_file_contents) len = newlen; } - RETVAL_STRINGL(contents, len); + RETVAL_STRINGL(contents, len, 0); } else { RETVAL_FALSE; } diff --git a/ext/standard/file.h b/ext/standard/file.h index 13185513d9..54825702eb 100644 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@ -53,6 +53,7 @@ PHP_FUNCTION(rename); PHP_FUNCTION(unlink); PHP_FUNCTION(copy); PHP_FUNCTION(file); +PHP_FUNCTION(get_file_contents); PHP_FUNCTION(set_socket_blocking); /* deprecated */ PHP_FUNCTION(socket_set_blocking); PHP_FUNCTION(socket_set_timeout); -- 2.50.1