diff options
-rw-r--r-- | ext/standard/file.c | 4 | ||||
-rw-r--r-- | 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); |