Re: [PATCH] fix Warning in image2wbmp

From: Date: Sun, 22 Feb 2004 17:46:25 +0000
Subject: Re: [PATCH] fix Warning in image2wbmp
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-8053@lists.php.net to get a copy of this message
Sorry Ilia, but it isn't. Your change only sets the parameter to 0 when you specify an invalid threshold. When you don't specify the threshold, it will throw a warning because the default is -1 (invalid). Nuno > This is already addressed in CVS. > > Ilia > > On February 22, 2004 06:12 am, Nuno Lopes wrote: > > Hello, > > > > Here is a small patch to fix a warning in image2wbmp() when you call that > > function without the optional parameters. > > > > > > Nuno > > > > > > ------------------------- > > reproduce script: > > <? > > $image = imagecreatefrompng('php.png'); > > image2wbmp($image); > > ?>

« previous php.internals (#8053) next »