Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61013 invoked by uid 1010); 22 Feb 2004 11:08:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60958 invoked from network); 22 Feb 2004 11:08:42 -0000 Received: from unknown (HELO sapo.pt) (212.55.154.26) by pb1.pair.com with SMTP; 22 Feb 2004 11:08:42 -0000 Received: (qmail 31778 invoked from network); 22 Feb 2004 11:08:41 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.155) by relay6 with SMTP; 22 Feb 2004 11:08:41 -0000 Received: (qmail 32384 invoked from network); 22 Feb 2004 11:07:36 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.140.14]) (envelope-sender ) by mta5 (qmail-ldap-1.03) with SMTP for ; 22 Feb 2004 11:07:35 -0000 Message-ID: <005201c3f934$b4b98aa0$0100a8c0@pc07653> To: "PHPdev" Date: Sun, 22 Feb 2004 11:12:02 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_004F_01C3F934.B2762A50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: [PATCH] fix Warning in image2wbmp From: nlopess@php.net ("Nuno Lopes") ------=_NextPart_000_004F_01C3F934.B2762A50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, Here is a small patch to fix a warning in image2wbmp() when you call that function without the optional parameters. Nuno ------------------------- reproduce script: ------=_NextPart_000_004F_01C3F934.B2762A50 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="diff.txt" Index: gd.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /repository/php-src/ext/gd/gd.c,v retrieving revision 1.287 diff -u -r1.287 gd.c --- gd.c 21 Feb 2004 16:49:39 -0000 1.287 +++ gd.c 22 Feb 2004 11:05:28 -0000 @@ -1682,7 +1682,7 @@ char *fn =3D NULL; FILE *fp; int argc =3D ZEND_NUM_ARGS(); - int q =3D -1, i, t =3D 1; + int q =3D 0, i, t =3D 1; =20 /* The quality parameter for Wbmp stands for the threshold when called = from image2wbmp() */ /* When called from imagewbmp() the quality parameter stands for the = foreground color. Default: black. */ ------=_NextPart_000_004F_01C3F934.B2762A50--