cvs: php-src(PHP_5_2) /ext/standard file.c
| From: | Antony Dovgal | Date: | Tue, 13 Feb 2007 12:56:37 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43041@lists.php.net to get a copy of this message | ||
tony2001 Tue Feb 13 12:56:37 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard file.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.409.2.6.2.15&r2=1.409.2.6.2.16&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.409.2.6.2.15 php-src/ext/standard/file.c:1.409.2.6.2.16
--- php-src/ext/standard/file.c:1.409.2.6.2.15 Mon Jan 1 09:36:08 2007
+++ php-src/ext/standard/file.c Tue Feb 13 12:56:36 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.409.2.6.2.15 2007/01/01 09:36:08 sebastian Exp $ */
+/* $Id: file.c,v 1.409.2.6.2.16 2007/02/13 12:56:36 tony2001 Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -546,7 +546,8 @@
}
if (offset > 0 && php_stream_seek(stream, offset, SEEK_SET) < 0) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the
stream.", offset);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the
stream", offset);
+ php_stream_close(stream);
RETURN_FALSE;
}