cvs: /php4/ext/standard file.c
| From: | Sterling Hughes | Date: | Fri, 17 Mar 2000 00:45:25 +0000 |
| Subject: | cvs: /php4/ext/standard file.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12295@lists.php.net to get a copy of this message | ||
sterling Thu Mar 16 16:45:25 2000 EDT
Modified files:
/php4/ext/standard file.c
Log:
ftruncate returns 1 on success and 0 on failure instead of 0 on success and -1 on failure.
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.71 php4/ext/standard/file.c:1.72
--- php4/ext/standard/file.c:1.71 Sun Mar 12 11:42:29 2000
+++ php4/ext/standard/file.c Thu Mar 16 16:44:55 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.71 2000/03/12 19:42:29 kk Exp $ */
+/* $Id: file.c,v 1.72 2000/03/17 00:44:55 sterling Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1477,7 +1477,7 @@
convert_to_long_ex(size);
ret = ftruncate(fileno((FILE *)what), (*size)->value.lval);
- RETURN_LONG(ret);
+ RETURN_LONG(ret + 1);
}
/* }}} */