cvs: php4 /ext/standard file.c file.h
| From: | Wez Furlong | Date: | Sat, 16 Mar 2002 16:14:56 +0000 |
| Subject: | cvs: php4 /ext/standard file.c file.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10243@lists.php.net to get a copy of this message | ||
wez Sat Mar 16 11:14:56 2002 EDT
Modified files:
/php4/ext/standard file.c file.h
Log:
Ooops.
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.210 php4/ext/standard/file.c:1.211
--- php4/ext/standard/file.c:1.210 Sat Mar 16 11:06:14 2002
+++ php4/ext/standard/file.c Sat Mar 16 11:14:56 2002
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.210 2002/03/16 16:06:14 wez Exp $ */
+/* $Id: file.c,v 1.211 2002/03/16 16:14:56 wez Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -372,7 +372,7 @@
{
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 @@
len = newlen;
}
- RETVAL_STRINGL(contents, len);
+ RETVAL_STRINGL(contents, len, 0);
} else {
RETVAL_FALSE;
}
Index: php4/ext/standard/file.h
diff -u php4/ext/standard/file.h:1.48 php4/ext/standard/file.h:1.49
--- php4/ext/standard/file.h:1.48 Fri Mar 15 20:34:52 2002
+++ php4/ext/standard/file.h Sat Mar 16 11:14:56 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.h,v 1.48 2002/03/16 01:34:52 wez Exp $ */
+/* $Id: file.h,v 1.49 2002/03/16 16:14:56 wez Exp $ */
/* Synced with php 3.0 revision 1.30 1999-06-16 [ssb] */
@@ -53,6 +53,7 @@
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);