]> granicus.if.org Git - php/commitdiff
Ooops.
authorWez Furlong <wez@php.net>
Sat, 16 Mar 2002 16:14:56 +0000 (16:14 +0000)
committerWez Furlong <wez@php.net>
Sat, 16 Mar 2002 16:14:56 +0000 (16:14 +0000)
ext/standard/file.c
ext/standard/file.h

index 06bcb9daf1c5a7835628f2ebf24e27583a1f1911..78259c6675f903ac6d4b1f8a7643f95ddc38af91 100644 (file)
@@ -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;
        }
index 13185513d978e46d6714ffdb9acff26a94b1baf8..54825702eb6640f09e17c7c6bd8a7d0cd00e9955 100644 (file)
@@ -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);