cvs: /php4/ext/gd gd.c
| From: | Sascha Schumann | Date: | Sun, 12 Dec 1999 10:54:16 +0000 |
| Subject: | cvs: /php4/ext/gd gd.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7816@lists.php.net to get a copy of this message | ||
sas Sun Dec 12 05:54:16 1999 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Call SLS_FETCH() only, if it is needed
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.27 php4/ext/gd/gd.c:1.28
--- php4/ext/gd/gd.c:1.27 Sat Dec 4 14:15:48 1999
+++ php4/ext/gd/gd.c Sun Dec 12 05:53:45 1999
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.27 1999/12/04 19:15:48 sas Exp $ */
+/* $Id: gd.c,v 1.28 1999/12/12 10:53:45 sas Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -601,13 +601,14 @@
output = php3_header();
if (output) {
- SLS_FETCH();
-
gdImageGif (im, tmp);
fseek(tmp, 0, SEEK_SET);
#if APACHE && defined(CHARSET_EBCDIC)
- /* This is a binary file already: avoid EBCDIC->ASCII conversion */
- ap_bsetflag(((request_rec *) SG(server_context))->connection->client, B_EBCDIC2ASCII, 0);
+ {
+ SLS_FETCH();
+ /* This is a binary file already: avoid EBCDIC->ASCII conversion */
+ ap_bsetflag(((request_rec *) SG(server_context))->connection->client, B_EBCDIC2ASCII, 0);
+ }
#endif
while ((b = fread(buf, 1, sizeof(buf), tmp)) > 0) {
php3_write(buf, b);