CVS update: php3/functions

From: Date: Mon, 14 Sep 1998 15:59:24 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-1056@lists.php.net to get a copy of this message
Date: Monday September 14, 1998 @ 11:59 Author: martin Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv11890 Modified Files: gd.c Log Message: For the ImageGif() function, avoid an incorrect extra conversion in the Apache-based PHP on machines based on the EBCDIC character set. Index: php3/functions/gd.c diff -c php3/functions/gd.c:1.92 php3/functions/gd.c:1.93 *** php3/functions/gd.c:1.92 Fri Sep 4 09:31:45 1998 --- php3/functions/gd.c Mon Sep 14 11:59:23 1998 *************** *** 29,35 **** +----------------------------------------------------------------------+ */ ! /* $Id: gd.c,v 1.92 1998/09/04 13:31:45 rasmus Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ --- 29,35 ---- +----------------------------------------------------------------------+ */ ! /* $Id: gd.c,v 1.93 1998/09/14 15:59:23 martin Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ *************** *** 739,744 **** --- 739,748 ---- if (output) { gdImageGif (im, tmp); fseek(tmp, 0, SEEK_SET); + #ifdef CHARSET_EBCDIC + /* This is a binary file already: avoid EBCDIC->ASCII conversion */ + ap_bsetflag(php3_rqst->connection->client, B_EBCDIC2ASCII, 0); + #endif while ((b = fread(buf, 1, sizeof(buf), tmp)) > 0) { php3_write(buf, b); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1056) next »